]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
scratchtoolpp: suppress deprecation warnings
authorSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 22:08:08 +0000 (14:08 -0800)
committerSage Weil <sage@redhat.com>
Thu, 4 Dec 2014 18:32:39 +0000 (10:32 -0800)
Signed-off-by: Sage Weil <sage@redhat.com>
src/tools/scratchtoolpp.cc

index 03839777e1dede2a1d8971760c0a27ee6cd3cf40..24dba3acfe2203c7deab9ddab1952bc70ed2fea4 100644 (file)
@@ -23,6 +23,9 @@ using namespace librados;
 #include <stdlib.h>
 #include <time.h>
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
+
 void buf_to_hex(const unsigned char *buf, int len, char *str)
 {
   str[0] = '\0';
@@ -313,3 +316,4 @@ int main(int argc, const char **argv)
   return 0;
 }
 
+#pragma GCC diagnostic pop