-
Notifications
You must be signed in to change notification settings - Fork 417
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix more compiler warnings #204
Fix more compiler warnings #204
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me! I have one suggestion removing -Wno-unused-parameter
as commented below.
CMakeModules/CompilerSettings.cmake
Outdated
@@ -1,14 +1,14 @@ | |||
# GCC | |||
if(CMAKE_COMPILER_IS_GNUCXX) | |||
add_definitions(-std=c++11 -W -Wall -g -Wextra -Wpedantic -Wno-missing-field-initializers -Wno-unused-parameter) | |||
add_definitions(-std=c++11 -W -Wall -g -Wextra -Wpedantic -Wno-unused-parameter) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe we could remove -Wno-unused-parameter
as well. One case could be a problem I can think of is using variables that are only used in assertions. For that case, we could use a macro to suppress the warning as we did in DART.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost, I have another PR for that. Touches something like 36 files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See #205.
PTAL @jslee02.