[fixed in 4.5] -Wunused-value cannot be suppressed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gcc-4.4 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
Some functions that have warn-unused-result cannot be used in a way described in http://
For example this line (where STDOUT_FILENO==0 and FLAG_EXIT_NOW is defined as some string):
(void) write(STDOUT_
compiled with:
cc -g -O -W -Wall -Wno-system-headers -Werror -Wunused-parameter -Wstrict-prototypes -Wmissing-
will report "error: ignoring return value of ‘write’, declared with attribute warn_unused_
ProblemType: Bug
Architecture: i386
Date: Thu Nov 5 22:31:44 2009
DistroRelease: Ubuntu 9.10
Package: gcc 4:4.4.1-1ubuntu2
ProcEnviron:
LANGUAGE=
PATH=(custom, no user)
LANG=pl_PL.UTF-8
SHELL=/bin/zsh
ProcVersionSign
SourcePackage: gcc-defaults
Uname: Linux 2.6.31-14-generic i686
fixed in 4.5 (available as gcc-snapshot in lucid)