[PATCH] D38630: Avoid 'unused param' warnings for !_LIBCPP_HAS_CATOPEN

Brian Cain via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 6 08:56:40 PDT 2017


bcain created this revision.

Repository:
  rL LLVM

https://reviews.llvm.org/D38630

Files:
  libcxx/include/locale


Index: libcxx/include/locale
===================================================================
--- libcxx/include/locale
+++ libcxx/include/locale
@@ -3549,6 +3549,7 @@
         __cat = static_cast<catalog>((static_cast<size_t>(__cat) >> 1));
     return __cat;
 #else // !_LIBCPP_HAS_CATOPEN
+    (void) __nm;
     return -1;
 #endif // _LIBCPP_HAS_CATOPEN
 }
@@ -3572,6 +3573,9 @@
                                                         __n, __n + strlen(__n));
     return __w;
 #else // !_LIBCPP_HAS_CATOPEN
+    (void) __c;
+    (void) __set;
+    (void) __msgid;
     return __dflt;
 #endif // _LIBCPP_HAS_CATOPEN
 }
@@ -3585,6 +3589,8 @@
         __c <<= 1;
     nl_catd __cat = (nl_catd)__c;
     catclose(__cat);
+#else
+    (void) __c;
 #endif // _LIBCPP_HAS_CATOPEN
 }
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38630.118011.patch
Type: text/x-patch
Size: 785 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171006/35cdf8f5/attachment.bin>


More information about the llvm-commits mailing list