Skip to content

Commit

Permalink
fix condition to only apply pragma for GCC 8+ (ros2#117)
Browse files Browse the repository at this point in the history
Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
  • Loading branch information
dirk-thomas authored May 9, 2019
1 parent 7097c78 commit b34df98
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ rosbag2_transport_info(PyObject * Py_UNUSED(self), PyObject * args, PyObject * k
}

/// Define the public methods of this module
#if !defined(_WIN32)
#if __GNUC__ >= 8
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wcast-function-type"
#endif
Expand All @@ -174,7 +174,7 @@ static PyMethodDef rosbag2_transport_methods[] = {
},
{nullptr, nullptr, 0, nullptr} /* sentinel */
};
#if !defined(_WIN32)
#if __GNUC__ >= 8
# pragma GCC diagnostic pop
#endif

Expand Down

0 comments on commit b34df98

Please sign in to comment.