remove unused auto-key struct-member from uiAfterFunc, add compiler defines to cppche...
authorCampbell Barton <ideasman42@gmail.com>
Sat, 10 Aug 2013 23:27:42 +0000 (23:27 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 10 Aug 2013 23:27:42 +0000 (23:27 +0000)
build_files/cmake/cmake_static_check_cppcheck.py
source/blender/editors/interface/interface_handlers.c

index 25e39376dd24d597897037db2a863ea0e5bf0d84..aac522dfdd3f664658f8cebd6be3d37f88358430 100644 (file)
@@ -52,6 +52,7 @@ if USE_QUIET:
 
 def main():
     source_info = project_source_info.build_info(ignore_prefix_list=CHECKER_IGNORE_PREFIX)
+    source_defines = project_source_info.build_defines_as_args()
 
     check_commands = []
     for c, inc_dirs, defs in source_info:
@@ -59,7 +60,8 @@ def main():
                CHECKER_ARGS +
                [c] +
                [("-I%s" % i) for i in inc_dirs] +
-               [("-D%s" % d) for d in defs]
+               [("-D%s" % d) for d in defs] +
+               source_defines
                )
 
         check_commands.append((c, cmd))
index 622559cd30f26870e870437e001e0f2fa888c01a..f9ee2b67e6bd1265082df482e6cf7d718d60a5e3 100644 (file)
@@ -228,10 +228,10 @@ typedef struct uiAfterFunc {
        bContextStore *context;
 
        char undostr[BKE_UNDO_STR_MAX];
-
-       int autokey;
 } uiAfterFunc;
 
+
+
 static bool ui_but_contains_pt(uiBut *but, int mx, int my);
 static bool ui_mouse_inside_button(ARegion *ar, uiBut *but, int x, int y);
 static void button_activate_state(bContext *C, uiBut *but, uiHandleButtonState state);