libs/wine/debug.c: enlcosed a 'write' function with 'if' to prevent gcc warnings. 'if' does nothing cause program exits right after the statement anyway. (bug # 16413)
Alexandre Julliard
julliard at winehq.org
Sun Jan 4 10:43:50 CST 2009
titon barua <titanix88 at gmail.com> writes:
> @@ -177,7 +177,8 @@ static void debug_usage(void)
> "Example: WINEDEBUG=+all,warn-heap\n"
> " turns on all messages except warning heap messages\n"
> "Available message classes: err, warn, fixme, trace\n";
> - write( 2, usage, sizeof(usage) - 1 );
> + /* enclosed in 'if' statement to prevent gcc warnings */
> + if (write( 2, usage, sizeof(usage) - 1 ));
Please don't do that sort of thing. That's much worse than the warning.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list