Skip to content
This repository has been archived by the owner on Nov 22, 2023. It is now read-only.

Fix/clang compiler errors #283

Merged
merged 4 commits into from
Nov 19, 2019
Merged

Fix/clang compiler errors #283

merged 4 commits into from
Nov 19, 2019

Conversation

HiddenBug
Copy link
Contributor

@HiddenBug HiddenBug commented Nov 12, 2019

Fix clang compiler errors.

There exists a compiler warning named "-Wgnu-zero-variadic-macro-arguments".
If build with gcc this warning does not appear, however, build with clang
the compiler warning appears. To avoid this problem a comma is added which
resolves the problem.
@HiddenBug HiddenBug assigned agutenkunst and unassigned agutenkunst Nov 12, 2019
@HiddenBug HiddenBug requested review from leunMar and removed request for agutenkunst November 15, 2019 14:11
Copy link
Contributor

@leunMar leunMar left a comment

Choose a reason for hiding this comment

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

I approve this essentially. Only minor improvements.

@leunMar
Copy link
Contributor

leunMar commented Nov 19, 2019

Please unify size_t usiage here, too:

return static_cast<unsigned long>(i) < arg->name.size() && arg->name.at((unsigned)i).compare(name) == 0;

@HiddenBug
Copy link
Contributor Author

Please unify size_t usiage here, too:

return static_cast<unsigned long>(i) < arg->name.size() && arg->name.at((unsigned)i).compare(name) == 0;

Done.

@HiddenBug
Copy link
Contributor Author

@leunMar What do you think? Can we merge?

@HiddenBug HiddenBug merged commit 156ad2f into PilzDE:melodic-devel Nov 19, 2019
@HiddenBug HiddenBug deleted the fix/clang_compiler_errors branch November 19, 2019 12:13
jschleicher pushed a commit that referenced this pull request Mar 12, 2020
* Fix clang compiler missing override warning in pilz_joint_trajectory_controller

* Fix comma problem with INSTANTIATE_TEST_CASE_P
There exists a compiler warning named "-Wgnu-zero-variadic-macro-arguments".
If build with gcc this warning does not appear, however, build with clang
the compiler warning appears. To avoid this problem a comma is added which
resolves the problem.

* Fix implicit conversion errors
jschleicher added a commit that referenced this pull request Mar 12, 2020
Errors     << prbt_hardware_support:
/root/target_ws/src/pilz_robots/prbt_hardware_support/test/unittests/unittest_operation_mode_setup_executor.cpp:303:1: error: macro "INSTANTIATE_TEST_CASE_P" passed 4 arguments, but takes just 3
martiniil pushed a commit that referenced this pull request Mar 24, 2020
* Fix clang compiler missing override warning in pilz_joint_trajectory_controller

* Fix comma problem with INSTANTIATE_TEST_CASE_P
There exists a compiler warning named "-Wgnu-zero-variadic-macro-arguments".
If build with gcc this warning does not appear, however, build with clang
the compiler warning appears. To avoid this problem a comma is added which
resolves the problem.

* Fix implicit conversion errors
martiniil pushed a commit that referenced this pull request Mar 24, 2020
Errors     << prbt_hardware_support:
/root/target_ws/src/pilz_robots/prbt_hardware_support/test/unittests/unittest_operation_mode_setup_executor.cpp:303:1: error: macro "INSTANTIATE_TEST_CASE_P" passed 4 arguments, but takes just 3
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants