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

[Sofa] Remove bunch of warnings (again) #1065

Merged
merged 11 commits into from
Jun 11, 2019

Conversation

fredroy
Copy link
Contributor

@fredroy fredroy commented May 25, 2019

1- last (?) override warnings
2- add a preprocessor define to remove OpenGL deprecated message on MacOS
3- various other warnings

I would appreciate if @epernod could check how the warnings from TopologyHandler has been managed ;) (commit a85cdae )


This PR:

  • builds with SUCCESS for all platforms on the CI.
  • does not generate new warnings.
  • does not generate new unit test failures.
  • does not generate new scene test failures.
  • does not break API compatibility.
  • is more than 1 week old (or has fast-merge label).

Reviewers will merge only if all these checks are true.

@fredroy fredroy added pr: status to review To notify reviewers to review this pull-request pr: clean Cleaning the code labels May 25, 2019
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Quad>::EMoved* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Tetrahedron>::EMoved* /*event*/) {}
virtual void ApplyTopologyChange(const TopologyChangeElementInfo<Topology::Hexahedron>::EMoved* /*event*/) {}

Copy link
Contributor

Choose a reason for hiding this comment

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

@epernod could you validate these empty functions?

Copy link
Contributor

Choose a reason for hiding this comment

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

If non-regression tests say ok, I would say ok as well.

@hugtalbot
Copy link
Contributor

[ci-build][with-all-tests]

@@ -113,7 +113,7 @@ These steps are explained in more detail in the sections that follow.
}

private:
static void eventCallback(ConstFSEventStreamRef streamRef, void *clientCallBackInfo, size_t numEvents, void *eventPaths, const FSEventStreamEventFlags eventFlags[], const FSEventStreamEventId eventIds[])
static void eventCallback(ConstFSEventStreamRef /*streamRef*/, void *clientCallBackInfo, size_t /*numEvents*/, void */*eventPaths*/, const FSEventStreamEventFlags /*eventFlags*/[], const FSEventStreamEventId /*eventIds*/[])
Copy link
Contributor

Choose a reason for hiding this comment

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

not better to use SOFA_UNUSED ?

@@ -183,7 +183,7 @@ int FileMonitor::addFile(const std::string& directoryname, const std::string& fi
volatile sig_atomic_t keep_going = 1;

/* The signal handler just clears the flag and re-enables itself. */
void catch_alarm (int sig)
void catch_alarm (int /*sig*/)
Copy link
Contributor

Choose a reason for hiding this comment

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

SOFA_UNUSED

@@ -24,7 +24,7 @@ namespace sofa
return ::operator new(sz);
}

void free(void* ptr, std::size_t sz) final
void free(void* ptr, std::size_t /* sz */) final
Copy link
Contributor

Choose a reason for hiding this comment

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

SOFA_UNUSED

@@ -87,9 +87,9 @@ public:
typedef typename DataTypes::Coord Coord;
VectorSpringForceField<DataTypes>* dest;
Loader(VectorSpringForceField<DataTypes>* dest) : dest(dest) {}
virtual void addVectorSpring(int m1, int m2, SReal ks, SReal kd, SReal /*initpos*/, SReal restx, SReal resty, SReal restz)
virtual void addVectorSpring(size_t m1, size_t m2, SReal ks, SReal kd, SReal /*initpos*/, SReal restx, SReal resty, SReal restz)
Copy link
Contributor

Choose a reason for hiding this comment

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

SOFA_UNUSED

@@ -49,7 +49,7 @@ class SOFA_GRAPH_COMPONENT_API SceneCheckerListener : public SceneLoader::Listen

// Do nothing on reload
virtual void rightBeforeReloadingScene() override {}
virtual void rightAfterReloadingScene(Node::SPtr node) override {}
virtual void rightAfterReloadingScene(Node::SPtr /* node */) override {}
Copy link
Contributor

Choose a reason for hiding this comment

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

SOFA_UNUSED

@epernod epernod added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels Jun 5, 2019
@fredroy
Copy link
Contributor Author

fredroy commented Jun 6, 2019

@epernod is that OK in the TopologySomethingHandler ?

@fredroy fredroy added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels Jun 7, 2019
@guparan
Copy link
Contributor

guparan commented Jun 7, 2019

[ci-build][force-full-build] 😉

@guparan guparan added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Jun 11, 2019
@guparan guparan merged commit 752d720 into sofa-framework:master Jun 11, 2019
@guparan guparan added this to the v19.06 milestone Jun 20, 2019
@fredroy fredroy deleted the remove_warn_again branch October 11, 2019 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: clean Cleaning the code pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants