From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5866 invoked by alias); 30 Aug 2010 14:43:11 -0000 Received: (qmail 5755 invoked by uid 48); 30 Aug 2010 14:42:53 -0000 Date: Mon, 30 Aug 2010 14:43:00 -0000 Message-ID: <20100830144253.5754.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug c/25509] can't disable __attribute__((warn_unused_result)) In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "bkorb at gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-08/txt/msg02425.txt.bz2 ------- Comment #25 from bkorb at gnu dot org 2010-08-30 14:42 ------- > > gcc currently has no middle option. > > Also this attribute is not on by default in glibc so you are asking to > turn on the style based warnings. (In reply to comment #24) > FIXED in GCC 4.5 After having waded through this long series of comments, I am left wondering just how this got addressed. Does --no-warn-unused-result mean that fwrite() usage may be cast to void, or that it may be treated as if it were a void procedure? I think it is very reasonable to warn if a returned result is not handled. Casting to void is a valid way to handle the result. I would like warnings when returned results are not handled. What does the fix do? -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=25509