On Sat, 2009-04-18 at 00:27 -0700, Steven Dake wrote:
> My compiler shows the following warning:
> -g -O2 -O3 -ggdb3       -Wall -Wshadow -Wmissing-prototypes
> -Wmissing-declarations -Wstrict-prototypes -Wdeclaration-after-statement
> -Wpointer-arith -Wwrite-strings -Wcast-align -Wbad-function-cast
> -Wmissing-format-attribute -Wformat=2 -Wformat-security
> -Wformat-nonliteral -Wno-long-long -Wno-strict-aliasing  -MT logsys.o
> -MD -MP -MF .deps/logsys.Tpo -c -o logsys.o logsys.c
> logsys.c: In function ‘log_printf_to_logs’:
> logsys.c:411: warning: ignoring return value of ‘fwrite’, declared with
> attribute warn_unused_result
> logsys.c:421: warning: ignoring return value of ‘write’, declared with
> attribute warn_unused_result
> 
> 
> please fix before merging.

What compiler version are you using? I don't see those one in my builds
with gcc-4.4 from Fedora 11.

The fwrite call has a comment 2 lines above that we need to figure out
how to handle failures also for fflush.

The write is probably for stderr.

Fabio

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to