From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: attribute warn_unused_result Date: Fri, 04 Feb 2011 18:38:35 +0200 Message-ID: <83zkqbah6c.fsf@gnu.org> References: <83r5bobz2k.fsf@gnu.org> <4D4B4EEA.50907@cs.ucla.edu> <83hbckb3u4.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: dough.gmane.org 1296837527 30934 80.91.229.12 (4 Feb 2011 16:38:47 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 4 Feb 2011 16:38:47 +0000 (UTC) Cc: eggert@cs.ucla.edu, monnier@iro.umontreal.ca, emacs-devel@gnu.org To: Tom Tromey Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 04 17:38:42 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PlOgD-0005Fq-Cd for ged-emacs-devel@m.gmane.org; Fri, 04 Feb 2011 17:38:42 +0100 Original-Received: from localhost ([127.0.0.1]:39142 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlOgC-000310-Sc for ged-emacs-devel@m.gmane.org; Fri, 04 Feb 2011 11:38:40 -0500 Original-Received: from [140.186.70.92] (port=51540 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PlOg5-00030U-Gh for emacs-devel@gnu.org; Fri, 04 Feb 2011 11:38:34 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PlOg3-0002sA-EX for emacs-devel@gnu.org; Fri, 04 Feb 2011 11:38:33 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:48239) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PlOg3-0002rb-7y for emacs-devel@gnu.org; Fri, 04 Feb 2011 11:38:31 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0LG300B00PPFCF00@a-mtaout23.012.net.il> for emacs-devel@gnu.org; Fri, 04 Feb 2011 18:38:29 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([77.124.97.124]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0LG300BELQ83CJ20@a-mtaout23.012.net.il>; Fri, 04 Feb 2011 18:38:29 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:135573 Archived-At: > From: Tom Tromey > Cc: Paul Eggert , monnier@iro.umontreal.ca, > emacs-devel@gnu.org > Date: Fri, 04 Feb 2011 08:50:45 -0700 > > I think this problem is caused by a change in Ubuntu. IIRC, it adds > -D_FORTIFY_SOURCE=2 by default. Yep, looks like that, thanks. I see this in "gcc -dumpspecs": %{!D_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE=*:%{!U_FORTIFY_SOURCE:-D_FORTIFY_SOURCE=2}}} > With ordinary glibc and gcc, you must ask for this setting, it is > not the default. See https://wiki.ubuntu.com/CompilerFlags. Except that this page says -D_FORTIFY_SOURCE=2 is in effect with -O2 or higher, but I also see the warning with -O1. Only -O0 disables it. Anyway, am I the only one who uses this version of Ubuntu? If so, sorry for the noise, and please disregard. I will find some way to get rid of it.