Skip to content

Commit

Permalink
Suppress warnings (#444)
Browse files Browse the repository at this point in the history
* Suppress zero variadic macro args message
* Remove unused clang flag, suppress ruby warnings

Signed-off-by: Michael Carroll <[email protected]>
  • Loading branch information
mjcarroll authored Jun 21, 2022
1 parent 6bb7586 commit c4098a7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/python_pybind11/src/Filter.hh
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public:
PYBIND11_OVERLOAD_PURE(
const T&, // Return type (ret_type)
Filter<T>, // Parent class (cname)
Value // Name of function in C++ (must match Python name)
Value, // Name of function in C++ (must match Python name)
);
}
};
Expand Down
2 changes: 1 addition & 1 deletion src/python_pybind11/src/SignalStats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ class SignalRootMeanSquareTrampoline :
std::string, // Return type (ret_type)
gz::math::SignalStatistic, // Parent class (cname)
// Name of function in C++ (must match Python name) (fn)
ShortName
ShortName,
);
}
// Trampoline (need one for each virtual function)
Expand Down
4 changes: 2 additions & 2 deletions src/ruby/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ if (RUBY_FOUND)
# Suppress warnings on SWIG-generated files
target_compile_options(${SWIG_RB_LIB} PRIVATE
$<$<CXX_COMPILER_ID:GNU>:-Wno-pedantic -Wno-shadow -Wno-maybe-uninitialized -Wno-unused-parameter>
$<$<CXX_COMPILER_ID:Clang>:-Wno-shadow -Wno-maybe-uninitialized -Wno-unused-parameter>
$<$<CXX_COMPILER_ID:Clang>:-Wno-shadow -Wno-unused-parameter -Wno-deprecated-declarations>
$<$<CXX_COMPILER_ID:AppleClang>:-Wno-shadow -Wno-maybe-uninitialized -Wno-unused-parameter>
)
target_include_directories(${SWIG_RB_LIB} SYSTEM PUBLIC ${RUBY_INCLUDE_DIRS})
Expand Down Expand Up @@ -86,7 +86,7 @@ if (RUBY_FOUND)
foreach (test ${ruby_tests})
add_test(NAME ${test}.rb COMMAND
ruby -I${FAKE_INSTALL_PREFIX}/lib/ruby/ignition ${CMAKE_SOURCE_DIR}/src/ruby/${test}.rb
--gtest_output=xml:${CMAKE_BINARY_DIR}/test_results/${test}rb.xml)
--gtest_output=xml:${CMAKE_BINARY_DIR}/test_results/${test}rb.xml)
set_tests_properties(${test}.rb PROPERTIES
ENVIRONMENT "${_env_vars}")
endforeach()
Expand Down
1 change: 1 addition & 0 deletions test/integration/deprecated_TEST.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
TEST(Deprecated, IgnitionNamespace)
{
ignition::math::Angle angle;
(void) angle;
}

#undef SUPPRESS_IGNITION_HEADER_DEPRECATION

0 comments on commit c4098a7

Please sign in to comment.