-
Notifications
You must be signed in to change notification settings - Fork 767
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
Miscellaneous fixes #616
Miscellaneous fixes #616
Conversation
varunagrawal
commented
Nov 28, 2020
- Suppress warnings for clang as well as gcc.
- Fix warning for potentially unassigned pointer.
- Plotting code fixes.
@@ -199,7 +199,7 @@ if(WIN32) | |||
else() | |||
if("${CMAKE_BUILD_TYPE}" STREQUAL "Release") | |||
# Suppress all warnings from 3rd party sources. | |||
set_source_files_properties(${3rdparty_srcs} PROPERTIES COMPILE_FLAGS "-w") | |||
set_source_files_properties(${3rdparty_srcs} PROPERTIES COMPILE_FLAGS "-w -Wno-everything") |
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.
what's this?
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.
That's the flag to suppress warnings in Clang. -w
already does so for GCC, but Clang still throws warnings in Release mode.
@@ -36,18 +36,15 @@ def set_axes_equal(fignum): | |||
ax.set_zlim3d([origin[2] - radius, origin[2] + radius]) | |||
|
|||
|
|||
def ellipsoid(xc, yc, zc, rx, ry, rz, n): | |||
def ellipsoid(rx, ry, rz, n): |
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.
API change? Why?
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.
The center point values are not used in the function anywhere. They are simply wasteful args that serve no purpose.