Skip to content

Commit

Permalink
enabled -Werror for all warnings but two in third party libs (#255)
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Aug 24, 2023
1 parent e83ed87 commit 4620bd0
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "GNU" AND
endif()

if(CMAKE_CXX_COMPILER_ID MATCHES "GNU")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror=format -Werror=format-security")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wno-attributes -Wno-deprecated-declarations")
endif()


Expand Down
2 changes: 1 addition & 1 deletion src/ParsingErrors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ void ReportError::printReport(std::pair<std::string, int> where, std::string msg

// -------------------------------------------------

#if !defined(_WIN32) && !defined(_WIN64)
#if !defined(_WIN32) && !defined(_WIN64) && !defined(fopen_s)
#define fopen_s(f,n,m) ((*f) = fopen(n,m))
#endif

Expand Down

0 comments on commit 4620bd0

Please sign in to comment.