From 7e91ac34436d8f0708e1b43cbe5b4f2e3885e9a8 Mon Sep 17 00:00:00 2001 From: Jared Mulconry Date: Mon, 25 Sep 2017 20:22:06 +1000 Subject: [PATCH] Suppressed warning on gcc caused by the 'visibility' attribute being ignored on types. --- include/assimp/scene.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/assimp/scene.h b/include/assimp/scene.h index 4d027456c..342c316d6 100644 --- a/include/assimp/scene.h +++ b/include/assimp/scene.h @@ -60,6 +60,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. extern "C" { #endif +#ifdef __GNUC__ +#pragma GCC diagnostic push +#pragma GCC diagnostic ignored "-Wattributes" +#endif + // ------------------------------------------------------------------------------- /** * A node in the imported hierarchy. @@ -163,6 +168,9 @@ struct ASSIMP_API aiNode #endif // __cplusplus }; +#ifdef __GNUC__ +#pragma GCC diagnostic pop +#endif // ------------------------------------------------------------------------------- /**