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

Commit

Permalink
Merge pull request #149 from ros2/suppress_deprecated_declaration_war…
Browse files Browse the repository at this point in the history
…nings

suppress deprecated declaration warning for Connext code
  • Loading branch information
dirk-thomas committed Apr 7, 2016
2 parents 6f1113f + 68e93ef commit b8c4e3f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions rmw_connext_cpp/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# pragma GCC diagnostic ignored "-Wunused-parameter"
# ifdef __clang__
# pragma clang diagnostic ignored "-Wdeprecated-register"
Expand Down
3 changes: 3 additions & 0 deletions rmw_connext_dynamic_cpp/src/functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
// See the License for the specific language governing permissions and
// limitations under the License.

#define _GLIBCXX_USE_CXX11_ABI 0

#include <cassert>
#include <exception>
#include <iostream>
Expand All @@ -26,6 +28,7 @@

#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# pragma GCC diagnostic ignored "-Wunused-parameter"
# ifdef __clang__
# pragma clang diagnostic ignored "-Wdeprecated-register"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# pragma GCC diagnostic ignored "-Wunused-parameter"
# ifdef __clang__
# pragma clang diagnostic ignored "-Wdeprecated-register"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
@
#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# pragma GCC diagnostic ignored "-Wunused-parameter"
# ifdef __clang__
# pragma clang diagnostic ignored "-Wdeprecated-register"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ if(NOT WIN32)
)
elseif("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
set(_connext_compile_flags
"-Wno-deprecated-declarations"
"-Wno-strict-aliasing"
"-Wno-unused-but-set-variable"
"-Wno-unused-parameter"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@
@# - get_header_filename_from_msg_name (function)
@#######################################################################
@
#define _GLIBCXX_USE_CXX11_ABI 0
#ifndef _WIN32
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wdeprecated-declarations"
# pragma GCC diagnostic ignored "-Wunused-parameter"
# ifdef __clang__
# pragma clang diagnostic ignored "-Wdeprecated-register"
Expand Down

0 comments on commit b8c4e3f

Please sign in to comment.