File tree Expand file tree Collapse file tree 2 files changed +247
-241
lines changed Expand file tree Collapse file tree 2 files changed +247
-241
lines changed Original file line number Diff line number Diff line change 11list ( APPEND eckit_cmd_srcs
2- AliasCmd.cc
3- AliasCmd.h
4- Arg.cc
5- Arg.h
6- CmdApplication.cc
7- CmdApplication.h
8- CmdArg.cc
9- CmdArg.h
10- CmdParser.cc
11- CmdParser.h
12- CmdResource.cc
13- CmdResource.h
14- ConfigCmd.cc
15- ConfigCmd.h
16- DirCmd.cc
17- DirCmd.h
18- EchoCmd.cc
19- EchoCmd.h
20- EnvironmentCmd.cc
21- EnvironmentCmd.h
22- ExportCmd.cc
23- ExportCmd.h
24- JSONCmd .cc
25- JSONCmd .h
26- HistoryCmd .cc
27- HistoryCmd .h
28- KillCmd.cc
29- KillCmd.h
30- LibEcKitCmd.cc
31- LibEcKitCmd.h
32- LockCmd.cc
33- LockCmd.h
34- ManCmd.cc
35- ManCmd.h
36- MemoryCmd.cc
37- MemoryCmd.h
38- PsCmd.cc
39- PsCmd.h
40- QuitCmd.cc
41- QuitCmd.h
42- RemoteCmd.cc
43- RemoteCmd.h
44- RemoteCommandable .cc
45- RemoteCommandable .h
46- RemoteCommander .cc
47- RemoteCommander .h
48- RemoteCommandUser .cc
49- RemoteCommandUser .h
50- SleepCmd.cc
51- SleepCmd.h
52- StartCmd.cc
53- StartCmd.h
54- StatusCmd.cc
55- StatusCmd.h
56- StopCmd.cc
57- StopCmd.h
58- TailCmd.cc
59- TailCmd.h
60- TermBuf.cc
61- TermBuf.h
62- term.c
63- UpTimeCmd.cc
64- UpTimeCmd.h
65- UserInput.h
66- UserInput.cc
2+ AliasCmd.cc
3+ AliasCmd.h
4+ Arg.cc
5+ Arg.h
6+ CmdApplication.cc
7+ CmdApplication.h
8+ CmdArg.cc
9+ CmdArg.h
10+ CmdParser.cc
11+ CmdParser.h
12+ CmdResource.cc
13+ CmdResource.h
14+ ConfigCmd.cc
15+ ConfigCmd.h
16+ DirCmd.cc
17+ DirCmd.h
18+ EchoCmd.cc
19+ EchoCmd.h
20+ EnvironmentCmd.cc
21+ EnvironmentCmd.h
22+ ExportCmd.cc
23+ ExportCmd.h
24+ HistoryCmd .cc
25+ HistoryCmd .h
26+ JSONCmd .cc
27+ JSONCmd .h
28+ KillCmd.cc
29+ KillCmd.h
30+ LibEcKitCmd.cc
31+ LibEcKitCmd.h
32+ LockCmd.cc
33+ LockCmd.h
34+ ManCmd.cc
35+ ManCmd.h
36+ MemoryCmd.cc
37+ MemoryCmd.h
38+ PsCmd.cc
39+ PsCmd.h
40+ QuitCmd.cc
41+ QuitCmd.h
42+ RemoteCmd.cc
43+ RemoteCmd.h
44+ RemoteCommandUser .cc
45+ RemoteCommandUser .h
46+ RemoteCommandable .cc
47+ RemoteCommandable .h
48+ RemoteCommander .cc
49+ RemoteCommander .h
50+ SleepCmd.cc
51+ SleepCmd.h
52+ StartCmd.cc
53+ StartCmd.h
54+ StatusCmd.cc
55+ StatusCmd.h
56+ StopCmd.cc
57+ StopCmd.h
58+ TailCmd.cc
59+ TailCmd.h
60+ TermBuf.cc
61+ TermBuf.h
62+ UpTimeCmd.cc
63+ UpTimeCmd.h
64+ UserInput.cc
65+ UserInput.h
66+ term.c
6767)
6868
69- ecbuild_generate_yy( YYPREFIX eckit_cmd_
70- YACC cmdsy
71- LEX cmdsl
72- DEPENDANT CmdParser.cc )
69+ ecbuild_generate_yy(
70+ YYPREFIX eckit_cmd_
71+ YACC cmdsy
72+ LEX cmdsl
73+ DEPENDANT CmdParser.cc
74+ )
7375
74- if ( NOT ENABLE_WARNINGS )
75- # Warnings present in autogenerated files based on cmdsy and cmdsl
76- list ( APPEND suppress_warnings
77- $<$<CXX_COMPILER_ID:GNU>:-Wno-unused-function>
78- $<$<CXX_COMPILER_ID:GNU>:-Wno-sign-compare>
79- $<$<CXX_COMPILER_ID:Clang>:-Wno-deprecated-register>
80- )
81- set_source_files_properties ( CmdParser.cc PROPERTIES COMPILE_OPTIONS "${suppress_warnings} " )
76+ # Supress warnings emited from YACC generated code
77+ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU" )
78+ list (APPEND suppress_warnings
79+ -Wno-unused-function
80+ )
81+ elseif (CMAKE_CXX_COMPILER_ID MATCHES "Clang" )
82+ list (APPEND suppress_warnings
83+ -Wno-unused-function
84+ -Wno-unneeded-internal -declaration
85+ )
8286endif ()
87+ set_source_files_properties (
88+ CmdParser.cc
89+ PROPERTIES
90+ COMPILE_OPTIONS "${suppress_warnings} "
91+ )
8392
8493ecbuild_add_library( TARGET eckit_cmd TYPE SHARED
8594 INSTALL_HEADERS LISTED
You can’t perform that action at this time.
0 commit comments