Kaynağa Gözat

Suppressed warning on gcc caused by the 'visibility' attribute being ignored on types.

Jared Mulconry 8 yıl önce
ebeveyn
işleme
7e91ac3443
1 değiştirilmiş dosya ile 8 ekleme ve 0 silme
  1. 8 0
      include/assimp/scene.h

+ 8 - 0
include/assimp/scene.h

@@ -60,6 +60,11 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 extern "C" {
 extern "C" {
 #endif
 #endif
 
 
+#ifdef __GNUC__
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wattributes"
+#endif
+
 // -------------------------------------------------------------------------------
 // -------------------------------------------------------------------------------
 /** 
 /** 
  * A node in the imported hierarchy.
  * A node in the imported hierarchy.
@@ -163,6 +168,9 @@ struct ASSIMP_API aiNode
 #endif // __cplusplus
 #endif // __cplusplus
 };
 };
 
 
+#ifdef __GNUC__
+#pragma GCC diagnostic pop
+#endif
 
 
 // -------------------------------------------------------------------------------
 // -------------------------------------------------------------------------------
 /**
 /**