From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32357 invoked by alias); 19 Jan 2010 03:19:19 -0000 Received: (qmail 32348 invoked by uid 22791); 19 Jan 2010 03:19:19 -0000 X-SWARE-Spam-Status: No, hits=-1.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-pw0-f49.google.com (HELO mail-pw0-f49.google.com) (209.85.160.49) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 19 Jan 2010 03:19:15 +0000 Received: by pwj12 with SMTP id 12so2363643pwj.8 for ; Mon, 18 Jan 2010 19:19:14 -0800 (PST) MIME-Version: 1.0 Received: by 10.142.7.24 with SMTP id 24mr886440wfg.2.1263871154094; Mon, 18 Jan 2010 19:19:14 -0800 (PST) In-Reply-To: <20100116220703.GA24229@host0.dyn.jankratochvil.net> References: <4B520B32.40504@codesourcery.com> <20100116220703.GA24229@host0.dyn.jankratochvil.net> From: Hui Zhu Date: Tue, 19 Jan 2010 03:19:00 -0000 Message-ID: Subject: Re: cvs tracepoint.c build error To: Stan Shebs Cc: gdb@sourceware.org, Jan Kratochvil Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2010-01/txt/msg00164.txt.bz2 Cvs-head build is OK in my pc now. Thanks. Best regards, Hui 2010/1/17 Jan Kratochvil : > On Sat, 16 Jan 2010 19:53:38 +0100, Stan Shebs wrote: >> Oops, sorry! =A0In retrospect, size_t was a bad idea, this is our own >> code and we should use unsigned long long (large buffers with >> 32x64). =A0Fix forthcoming. > > With -Wp,-D_FORTIFY_SOURCE=3D1 -O1 (Fedora 12) I get also: > > tracepoint.c: In function =91trace_save_command=92: > tracepoint.c:2392: error: ignoring return value of =91fwrite=92, declared= with attribute warn_unused_result > tracepoint.c:2476: error: ignoring return value of =91fwrite=92, declared= with attribute warn_unused_result > tracepoint.c:2481: error: ignoring return value of =91fwrite=92, declared= with attribute warn_unused_result > tracepoint.c: In function =91tfile_open=92: > tracepoint.c:2826: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:2847: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c: In function =91tfile_get_traceframe_address=92: > tracepoint.c:3152: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c: In function =91tfile_trace_find=92: > tracepoint.c:3184: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3188: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c: In function =91tfile_fetch_registers=92: > tracepoint.c:3264: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3269: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3296: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c: In function =91tfile_xfer_partial=92: > tracepoint.c:3333: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3342: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3343: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3346: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c: In function =91tfile_get_trace_state_variable_value=92: > tracepoint.c:3380: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3390: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3395: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > tracepoint.c:3398: error: ignoring return value of =91read=92, declared w= ith attribute warn_unused_result > > which IMO should be properly checked. > > > Thanks, > Jan >