From 9e3ef58cbc468a88c91345f428f7e847e818cb4b Mon Sep 17 00:00:00 2001 From: Daniel Scharrer Date: Thu, 1 Mar 2012 17:36:43 +0100 Subject: [PATCH] Suppress annoying style warnings. --- cmake/StyleCheck.cmake | 3 +++ src/cli/main.cpp | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/cmake/StyleCheck.cmake b/cmake/StyleCheck.cmake index cf2b6df..90c2787 100644 --- a/cmake/StyleCheck.cmake +++ b/cmake/StyleCheck.cmake @@ -32,6 +32,9 @@ set(STYLE_FILTER ${STYLE_FILTER},-runtime/arrays) set(STYLE_FILTER ${STYLE_FILTER},-whitespace/todo) set(STYLE_FILTER ${STYLE_FILTER},-readability/todo) +# Annoyting to use with boost::program_options +set(STYLE_FILTER ${STYLE_FILTER},-whitespace/semicolon) + function(add_style_check_target TARGET_NAME SOURCES_LIST INCLUDES_LIST) if(PYTHONINTERP_FOUND) diff --git a/src/cli/main.cpp b/src/cli/main.cpp index b1c4c1f..828773b 100644 --- a/src/cli/main.cpp +++ b/src/cli/main.cpp @@ -313,7 +313,7 @@ int main(int argc, char * argv[]) { generic.add_options() ("help,h", "Show supported options.") ("version,v", "Print the version information.") - /**/; + ; po::options_description action("Actions"); action.add_options() @@ -322,7 +322,7 @@ int main(int argc, char * argv[]) { ("extract,e", "Extract files (default action).") ("list,l", "Only list files, don't write anything.") ("lowercase,w", "Convert extracted filenames to lowercase.") - /**/; + ; po::options_description io("I/O options"); io.add_options() @@ -334,7 +334,7 @@ int main(int argc, char * argv[]) { #ifdef DEBUG ("debug,g", "Output debug information.") #endif - /**/; + ; po::options_description hidden("Hidden options"); hidden.add_options()