Resolve unknown option warnings from GCC due to -Wunused-private-field 81/4881/1
authorEvan Ramos <evan@hpccharm.com>
Thu, 3 Jan 2019 22:38:52 +0000 (16:38 -0600)
committerEvan Ramos <evan@hpccharm.com>
Thu, 3 Jan 2019 22:38:52 +0000 (16:38 -0600)
Change-Id: Id9e4926a8b0897fb6986ee907cbc15a8490426ac

src/ck-core/envelope.h
src/conv-core/converse.h

index 3a5b38809f08c5f9fcd36e5a7ee5196cc55c37ae..6d41967792d863172c210ff6ceab58c72d4c908d 100644 (file)
@@ -252,8 +252,10 @@ public:
     #if defined(__GNUC__) || defined(__clang__)
     #pragma GCC diagnostic push
     #pragma GCC diagnostic ignored "-Wpedantic"
+    #if defined(__clang__)
     #pragma GCC diagnostic ignored "-Wunused-private-field"
     #endif
+    #endif
     // padding to ensure ALIGN_BYTES alignment
     UChar align[CkMsgAlignOffset(sizeof(envelopeSizeHelper))];
     #if defined(__GNUC__) || defined(__clang__)
index d899d998aeedbff2fb495c7fc3bcbb760f9db904..68751a5b11b4755c6ecc9fdfbd0efc391c645c82 100644 (file)
@@ -800,8 +800,10 @@ private:
   #if defined(__GNUC__) || defined(__clang__)
   #pragma GCC diagnostic push
   #pragma GCC diagnostic ignored "-Wpedantic"
+  #if defined(__clang__)
   #pragma GCC diagnostic ignored "-Wunused-private-field"
   #endif
+  #endif
   char align[ALIGN_BYTES
              - sizeof(int)*2
 #if (CMK_USE_IBVERBS || CMK_USE_IBUD)