diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-08-11 03:27:42 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-08-11 03:27:42 +0400 |
commit | a62163ada389a18d11f0c085654916e2ef069a46 (patch) | |
tree | be748d747828c3f0647b176b6408d9dd7b5875e8 /build_files/cmake/cmake_static_check_cppcheck.py | |
parent | 76cb6829e50b53211858b514f290881872a43d45 (diff) |
remove unused auto-key struct-member from uiAfterFunc, add compiler defines to cppcheck utility script.
Diffstat (limited to 'build_files/cmake/cmake_static_check_cppcheck.py')
-rw-r--r-- | build_files/cmake/cmake_static_check_cppcheck.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build_files/cmake/cmake_static_check_cppcheck.py b/build_files/cmake/cmake_static_check_cppcheck.py index 25e39376dd2..aac522dfdd3 100644 --- a/build_files/cmake/cmake_static_check_cppcheck.py +++ b/build_files/cmake/cmake_static_check_cppcheck.py @@ -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)) |