]> git.saurik.com Git - apt.git/blobdiff - test/libapt/assert.h
warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
[apt.git] / test / libapt / assert.h
index 113c057ede9a73f902ed4342f46244ce907638ef..cde6a63515029ac6699cda6de01d4670fde88482 100644 (file)
@@ -1,6 +1,11 @@
 #include <iostream>
 #include <cstdlib>
 
+#if __GNUC__ >= 4
+       #pragma GCC diagnostic push
+       #pragma GCC diagnostic ignored "-Wmissing-declarations"
+#endif
+
 #define equals(x,y) assertEquals(y, x, __LINE__)
 #define equalsNot(x,y) assertEqualsNot(y, x, __LINE__)
 
@@ -111,3 +116,7 @@ void dumpVector(X vec) {
             v != vec.end(); ++v)
                std::cout << *v << std::endl;
 }
+
+#if __GNUC__ >= 4
+       #pragma GCC diagnostic pop
+#endif