Skip to content
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

Merged
merged 3 commits into from
Nov 30, 2020
Merged

Miscellaneous fixes #616

merged 3 commits into from
Nov 30, 2020

Conversation

varunagrawal
Copy link
Collaborator

  1. Suppress warnings for clang as well as gcc.
  2. Fix warning for potentially unassigned pointer.
  3. Plotting code fixes.

@varunagrawal varunagrawal added bugfix Fixes an issue or bug quick-review Quick and easy PR to review labels Nov 28, 2020
@varunagrawal varunagrawal self-assigned this Nov 28, 2020
@@ -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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what's this?

Copy link
Collaborator Author

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):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API change? Why?

Copy link
Collaborator Author

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.

@varunagrawal varunagrawal merged commit 92757a1 into develop Nov 30, 2020
@varunagrawal varunagrawal deleted the fix/misc branch November 30, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fixes an issue or bug quick-review Quick and easy PR to review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants