suppress a spurious -Wsuggest-attribute=format
authorAndrei Zavada <johnhommer@gmail.com>
Wed, 18 Feb 2015 00:59:42 +0000 (02:59 +0200)
committerAndrei Zavada <johnhommer@gmail.com>
Wed, 18 Feb 2015 01:01:17 +0000 (03:01 +0200)
upstream/src/libstilton/libstilton.cc

index 06b7e605d395a80e4efe240a7a8cb698f86a9887..19a656d092b95988c47acc1d722c5cb7b33cd6f7 100644 (file)
@@ -61,7 +61,10 @@ cnrun::stilton::str::
 svasprintf( const char* fmt, va_list ap)
 {
         char *_;
+#pragma GCC diagnostic ignored "-Wsuggest-attribute=format"
+#pragma GCC diagnostic push
         if (vasprintf( &_, fmt, ap) <= 0)
+#pragma GCC diagnostic pop
                 abort();
         string ret {_};
         free( (void*)_);