[llvm-commits] [llvm] r112498 - /llvm/trunk/include/llvm/ADT/STLExtras.h

Eric Christopher echristo at apple.com
Mon Aug 30 11:31:44 PDT 2010


Author: echristo
Date: Mon Aug 30 13:31:44 2010
New Revision: 112498

URL: http://llvm.org/viewvc/llvm-project?rev=112498&view=rev
Log:
Kill a couple of unused variables.

Modified:
    llvm/trunk/include/llvm/ADT/STLExtras.h

Modified: llvm/trunk/include/llvm/ADT/STLExtras.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/STLExtras.h?rev=112498&r1=112497&r2=112498&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/STLExtras.h (original)
+++ llvm/trunk/include/llvm/ADT/STLExtras.h Mon Aug 30 13:31:44 2010
@@ -225,7 +225,7 @@
 
 /// Find the length of an array.
 template<class T, std::size_t N>
-inline size_t array_lengthof(T (&x)[N]) {
+inline size_t array_lengthof(T (&)[N]) {
   return N;
 }
 
@@ -243,7 +243,7 @@
 /// get_array_pad_sort_comparator - This is an internal helper function used to
 /// get type deduction of T right.
 template<typename T>
-static int (*get_array_pad_sort_comparator(const T &X))
+static int (*get_array_pad_sort_comparator(const T &))
              (const void*, const void*) {
   return array_pod_sort_comparator<T>;
 }





More information about the llvm-commits mailing list