Skip to content

Commit

Permalink
Enabled more compiler warnings
Browse files Browse the repository at this point in the history
Minor change

Minor change

Minor change
  • Loading branch information
jose-luis-rs committed May 8, 2023
1 parent 7b5ff4b commit 7d01c06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ check_compiler()

if(DEFINED ENV{WERROR} AND "$ENV{WERROR}")
message(STATUS "Will compile with -Werror. ")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wformat-security -Werror -Wno-sign-compare -Wno-reorder -Wno-unused-variable -Wno-unused-but-set-variable -Wfatal-errors")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Wno-variadic-macros -Wshadow -Wformat-security -Werror -Wno-sign-compare -Wno-reorder -Wno-unused-variable -Wno-unused-but-set-variable -Wfatal-errors")
else()
if (NOT APPLE)
message(STATUS "Set env WERROR to 1 to enable -Werror. If origin/dev compiles on your platform with that option, it is definitly a good idea to do that.")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wformat-security -Wno-sign-compare -Wno-reorder -Wno-unused-variable -Wno-unused-but-set-variable")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic -Wno-non-virtual-dtor -Wno-long-long -Wwrite-strings -Wpointer-arith -Woverloaded-virtual -Wno-variadic-macros -Wshadow -Wformat-security -Wno-sign-compare -Wno-reorder -Wno-unused-variable -Wno-unused-but-set-variable")
endif()
endif()
set(CMAKE_CXX_FLAGS "-D_GLIBCXX_ASSERTIONS ${CMAKE_CXX_FLAGS}" )
Expand Down
1 change: 0 additions & 1 deletion los/calib/R3BLosCal2Hit.h
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,6 @@ class R3BLosCal2Hit : public FairTask
TH2F* fhQ3_vs_Q7_corr;
TH2F* fhQ4_vs_Q8;
TH2F* fhQ4_vs_Q8_corr;
;
TH2F* fhTresX_M;
TH2F* fhTresY_M;
TH2F* fhTresX_T;
Expand Down

0 comments on commit 7d01c06

Please sign in to comment.