Alexandre Julliard : widl: Add a dummy reference to the filter function to avoid a warning.
Alexandre Julliard
julliard at winehq.org
Fri Feb 6 09:56:19 CST 2009
Module: wine
Branch: master
Commit: 844c8a18047a76da43072a88bcfdbe9e7f9f7dbd
URL: http://source.winehq.org/git/wine.git/?a=commit;h=844c8a18047a76da43072a88bcfdbe9e7f9f7dbd
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Feb 6 14:03:54 2009 +0100
widl: Add a dummy reference to the filter function to avoid a warning.
---
tools/widl/typegen.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/tools/widl/typegen.c b/tools/widl/typegen.c
index d16f1fd..beae9aa 100644
--- a/tools/widl/typegen.c
+++ b/tools/widl/typegen.c
@@ -3685,7 +3685,9 @@ void write_exceptions( FILE *file )
fprintf( file, "\n");
fprintf( file, "#else /* USE_COMPILER_EXCEPTIONS */\n");
fprintf( file, "\n");
- fprintf( file, "#define RpcExceptionInit(filter_func,finally_func) do {} while(0)\n");
+ fprintf( file, "#define RpcExceptionInit(filter_func,finally_func) \\\n");
+ fprintf( file, " do { (void)(filter_func); } while(0)\n");
+ fprintf( file, "\n");
fprintf( file, "#define __DECL_EXCEPTION_FRAME \\\n");
fprintf( file, " DWORD code;\n");
fprintf( file, "\n");
More information about the wine-cvs
mailing list