[libcxxabi] r235830 - libc++abi: remove unused variable

Saleem Abdulrasool compnerd at compnerd.org
Sun Apr 26 19:21:57 PDT 2015


Author: compnerd
Date: Sun Apr 26 21:21:57 2015
New Revision: 235830

URL: http://llvm.org/viewvc/llvm-project?rev=235830&view=rev
Log:
libc++abi: remove unused variable

The externC variable was set but unused.  This constantly flagged a warning from
gcc.  Replace it with a comment until such a time that we need it.

Modified:
    libcxxabi/trunk/src/cxa_demangle.cpp

Modified: libcxxabi/trunk/src/cxa_demangle.cpp
URL: http://llvm.org/viewvc/llvm-project/libcxxabi/trunk/src/cxa_demangle.cpp?rev=235830&r1=235829&r2=235830&view=diff
==============================================================================
--- libcxxabi/trunk/src/cxa_demangle.cpp (original)
+++ libcxxabi/trunk/src/cxa_demangle.cpp Sun Apr 26 21:21:57 2015
@@ -1575,10 +1575,9 @@ parse_function_type(const char* first, c
         const char* t = first+1;
         if (t != last)
         {
-            bool externC = false;
             if (*t == 'Y')
             {
-                externC = true;
+                /* extern "C" */
                 if (++t == last)
                     return first;
             }





More information about the cfe-commits mailing list