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)
titon barua
titanix88 at gmail.com
Sun Jan 4 10:24:15 CST 2009
---
libs/wine/debug.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libs/wine/debug.c b/libs/wine/debug.c
index 12dbeb8..846c483 100644
--- a/libs/wine/debug.c
+++ b/libs/wine/debug.c
@@ -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 ));
exit(1);
}
--
1.5.6.3
More information about the wine-patches
mailing list