[cfe-commits] [libcxxabi] r152415 - in /libcxxabi/trunk: lib/buildit src/cxa_demangle.cpp src/cxa_personality.cpp src/private_typeinfo.cpp

Howard Hinnant hhinnant at apple.com
Fri Mar 9 10:01:37 PST 2012


Author: hhinnant
Date: Fri Mar  9 12:01:37 2012
New Revision: 152415

URL: http://llvm.org/viewvc/llvm-project?rev=152415&view=rev
Log:
Enable / silence -Wunused-parameter.

Modified:
    libcxxabi/trunk/lib/buildit
    libcxxabi/trunk/src/cxa_demangle.cpp
    libcxxabi/trunk/src/cxa_personality.cpp
    libcxxabi/trunk/src/private_typeinfo.cpp

Modified: libcxxabi/trunk/lib/buildit
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/lib/buildit?rev=152415&r1=152414&r2=152415&view=diff
==============================================================================
--- libcxxabi/trunk/lib/buildit (original)
+++ libcxxabi/trunk/lib/buildit Fri Mar  9 12:01:37 2012
@@ -31,7 +31,8 @@
              -Wsign-conversion -Wshadow -Wconversion -Wunused-variable \
              -Wmissing-field-initializers -Wchar-subscripts -Wmismatched-tags \
              -Wmissing-braces -Wshorten-64-to-32 -Wsign-compare \
-             -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wnewline-eof"
+             -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter \
+             -Wnewline-eof"
 
 case $TRIPLE in
   *-apple-*)

Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=152415&r1=152414&r2=152415&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Fri Mar  9 12:01:37 2012
@@ -79,7 +79,7 @@
         return get_demangled_name(buf);
     }
 
-    virtual bool ends_with_template(bool parsing = false) const
+    virtual bool ends_with_template(bool /*parsing*/ = false) const
     {
         return false;
     }
@@ -3883,7 +3883,7 @@
         *buf++ = '>';
         return buf;
     }
-    virtual bool ends_with_template(bool parsing = false) const
+    virtual bool ends_with_template(bool /*parsing*/ = false) const
     {
         return true;
     }
@@ -5792,7 +5792,7 @@
         return __left_->fix_forward_references(t_begin, t_end) &&
                __right_->fix_forward_references(t_begin, t_end);
     }
-    virtual __node* extract_cv(__node*& rt) const
+    virtual __node* extract_cv(__node*&) const
     {
         return __right_->extract_cv(const_cast<__node*&>(__right_));
     }
@@ -5860,7 +5860,7 @@
             r = __left_->fix_forward_references(t_begin, t_end);
         return r && __right_->fix_forward_references(t_begin, t_end);
     }
-    virtual __node* extract_cv(__node*& rt) const
+    virtual __node* extract_cv(__node*&) const
     {
         return __right_->extract_cv(const_cast<__node*&>(__right_));
     }
@@ -6926,7 +6926,7 @@
 }
 
 const char*
-__demangle_tree::__parse_unscoped_template_name(const char* first, const char* last)
+__demangle_tree::__parse_unscoped_template_name(const char* first, const char*)
 {
 //    assert(!"__parse_unscoped_template_name not implemented");
     __status_ = not_yet_implemented;

Modified: libcxxabi/trunk/src/cxa_personality.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_personality.cpp?rev=152415&r1=152414&r2=152415&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_personality.cpp (original)
+++ libcxxabi/trunk/src/cxa_personality.cpp Fri Mar  9 12:01:37 2012
@@ -527,6 +527,9 @@
     // Walk call-site table looking for range that 
     // includes current PC. 
     uint8_t callSiteEncoding = *lsda++;
+#if __arm__
+    (void)callSiteEncoding;  // On arm callSiteEncoding is never used
+#endif
     uint32_t callSiteTableLength = static_cast<uint32_t>(readULEB128(&lsda));
     const uint8_t* callSiteTableStart = lsda;
     const uint8_t* callSiteTableEnd = callSiteTableStart + callSiteTableLength;

Modified: libcxxabi/trunk/src/private_typeinfo.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/private_typeinfo.cpp?rev=152415&r1=152414&r2=152415&view=diff
==============================================================================
--- libcxxabi/trunk/src/private_typeinfo.cpp (original)
+++ libcxxabi/trunk/src/private_typeinfo.cpp Fri Mar  9 12:01:37 2012
@@ -123,8 +123,7 @@
 }
 
 bool
-__array_type_info::can_catch(const __shim_type_info* thrown_type,
-                             void*&) const
+__array_type_info::can_catch(const __shim_type_info*, void*&) const
 {
     // We can get here if someone tries to catch an array by reference.
     //   However if someone tries to throw an array, it immediately gets
@@ -134,8 +133,7 @@
 }
 
 bool
-__function_type_info::can_catch(const __shim_type_info* thrown_type,
-                                void*&) const
+__function_type_info::can_catch(const __shim_type_info*, void*&) const
 {
     // We can get here if someone tries to catch a function by reference.
     //   However if someone tries to throw a function, it immediately gets





More information about the cfe-commits mailing list