Skip to content

Commit

Permalink
Revert "icetray - suppress dodgy gcc warning"
Browse files Browse the repository at this point in the history
This reverts commit a43ef2dc606bd08a549224eb8aacc63e1631643a.
  • Loading branch information
nega0 authored and nwhitehorn committed Jul 9, 2024
1 parent 204b585 commit b439ca5
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,7 @@ struct boost_serializable_pickle_suite : boost::python::pickle_suite
{
static boost::python::tuple getstate(boost::python::object element_obj)
{

// as of gcc 14.1 -Wdangling-reference (included in -Wall) is still being
// ironed out. kick that can down the road.
#if __GNUC__ == 13 || \
(__GNUC__ == 14 && __GNUC_MINOR__ < 2)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdangling-reference"
const T &element = boost::python::extract<const T &>(element_obj)();
#pragma GCC diagnostic pop
#endif

// serialize the object into a buffer
std::vector<char> blobBuffer;
Expand Down

0 comments on commit b439ca5

Please sign in to comment.