Alas. Fix #pragma magic for GCC <= 4.5.

push/pop was introduced for GCC4.6 only - so avoid it.
Also, properly fix the fgets warning.
This commit is contained in:
ThorstenB
2012-01-09 22:18:17 +01:00
parent 49a23fdc2e
commit 423eba3733
3 changed files with 4 additions and 5 deletions
+1 -2
View File
@@ -25,7 +25,6 @@ public:
#ifdef __GNUC__
// Avoid "_center not initialized" warnings.
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wuninitialized"
#endif
@@ -49,7 +48,7 @@ public:
#ifdef __GNUC__
// Restore warning settings.
# pragma GCC diagnostic pop
# pragma GCC diagnostic warning "-Wuninitialized"
#endif
const SGVec3<T>& getCenter() const
+1 -2
View File
@@ -31,7 +31,6 @@ public:
#ifdef __GNUC__
// Avoid "_data not initialized" warnings (see comment below).
# pragma GCC diagnostic push
# pragma GCC diagnostic ignored "-Wuninitialized"
#endif
@@ -50,7 +49,7 @@ public:
#ifdef __GNUC__
// Restore warning settings.
# pragma GCC diagnostic pop
# pragma GCC diagnostic warning "-Wuninitialized"
#endif
/// Constructor. Initialize by the given values