From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7550 invoked by alias); 16 Jan 2010 22:07:22 -0000 Received: (qmail 7541 invoked by uid 22791); 16 Jan 2010 22:07:21 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 16 Jan 2010 22:07:16 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o0GM77Tq009750 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 16 Jan 2010 17:07:07 -0500 Received: from host0.dyn.jankratochvil.net (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o0GM74fm019563 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 16 Jan 2010 17:07:07 -0500 Received: from host0.dyn.jankratochvil.net (localhost [127.0.0.1]) by host0.dyn.jankratochvil.net (8.14.3/8.14.3) with ESMTP id o0GM74cv024288; Sat, 16 Jan 2010 23:07:04 +0100 Received: (from jkratoch@localhost) by host0.dyn.jankratochvil.net (8.14.3/8.14.3/Submit) id o0GM73QI024285; Sat, 16 Jan 2010 23:07:03 +0100 Date: Sat, 16 Jan 2010 22:07:00 -0000 From: Jan Kratochvil To: Stan Shebs Cc: Hui Zhu , gdb@sourceware.org Subject: Re: cvs tracepoint.c build error Message-ID: <20100116220703.GA24229@host0.dyn.jankratochvil.net> References: <4B520B32.40504@codesourcery.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Disposition: inline In-Reply-To: <4B520B32.40504@codesourcery.com> User-Agent: Mutt/1.5.20 (2009-08-17) 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/msg00150.txt.bz2 On Sat, 16 Jan 2010 19:53:38 +0100, Stan Shebs wrote: > Oops, sorry! In retrospect, size_t was a bad idea, this is our own > code and we should use unsigned long long (large buffers with > 32x64). Fix forthcoming. With -Wp,-D_FORTIFY_SOURCE=1 -O1 (Fedora 12) I get also: tracepoint.c: In function ‘trace_save_command’: tracepoint.c:2392: error: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result tracepoint.c:2476: error: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result tracepoint.c:2481: error: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result tracepoint.c: In function ‘tfile_open’: tracepoint.c:2826: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:2847: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c: In function ‘tfile_get_traceframe_address’: tracepoint.c:3152: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c: In function ‘tfile_trace_find’: tracepoint.c:3184: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3188: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c: In function ‘tfile_fetch_registers’: tracepoint.c:3264: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3269: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3296: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c: In function ‘tfile_xfer_partial’: tracepoint.c:3333: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3342: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3343: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3346: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c: In function ‘tfile_get_trace_state_variable_value’: tracepoint.c:3380: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3390: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3395: error: ignoring return value of ‘read’, declared with attribute warn_unused_result tracepoint.c:3398: error: ignoring return value of ‘read’, declared with attribute warn_unused_result which IMO should be properly checked. Thanks, Jan