[8bf9bf3] master: Identified the freestyle stubs breaking pragma GCC diagnostic error "-Wmissing-prototypes”, diasabling this case for now

Jens Verwiebe noreply at git.blender.org
Mon Jan 27 23:01:09 CET 2014


Commit: 8bf9bf37ec8e70e57c1b763c3b4c21a05f5f1933
Author: Jens Verwiebe
Date:   Mon Jan 27 23:00:55 2014 +0100
https://developer.blender.org/rB8bf9bf37ec8e70e57c1b763c3b4c21a05f5f1933

Identified the freestyle stubs breaking pragma GCC diagnostic error "-Wmissing-prototypes”, diasabling this case for now

===================================================================

M	source/blenderplayer/bad_level_call_stubs/stubs.c

===================================================================

diff --git a/source/blenderplayer/bad_level_call_stubs/stubs.c b/source/blenderplayer/bad_level_call_stubs/stubs.c
index 556377b..9a3dbe9 100644
--- a/source/blenderplayer/bad_level_call_stubs/stubs.c
+++ b/source/blenderplayer/bad_level_call_stubs/stubs.c
@@ -139,8 +139,9 @@ struct wmWindowManager;
 /* Declarations */
 
 /* may cause troubles... enable for now so args match for certain */
+/* all 7 freestyle stubs are not valid prototypes, disabling diagnostic then, Jens */
 #if 1
-#if defined(__GNUC__) && !defined(__APPLE__)
+#if defined(__GNUC__) && !defined(WITH_FREESTYLE)
 #  pragma GCC diagnostic error "-Wmissing-prototypes"
 #endif




More information about the Bf-blender-cvs mailing list