From deeab558ba15101528d7786c6b002066036517e2 Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Sun, 15 May 2016 23:54:34 +0200 Subject: [PATCH] quench strict aliasing warnings --- include/pybind11/pybind11.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/pybind11/pybind11.h b/include/pybind11/pybind11.h index f5a483f97..302a8a09c 100644 --- a/include/pybind11/pybind11.h +++ b/include/pybind11/pybind11.h @@ -25,6 +25,8 @@ # pragma GCC diagnostic ignored "-Wunused-but-set-parameter" # pragma GCC diagnostic ignored "-Wunused-but-set-variable" # pragma GCC diagnostic ignored "-Wmissing-field-initializers" +# pragma GCC diagnostic ignored "-Wstrict-aliasing" +# pragma GCC diagnostic ignored "-Wattributes" #endif #include "attr.h"