Forgot to mention.. this is the 4th and final patch in this sequence.

Thanks,

Balaji V. Iyer.
________________________________________
From: Iyer, Balaji V
Sent: Friday, November 11, 2011 11:16 AM
To: gcc-patches@gcc.gnu.org
Subject: [PATCH][Cilkplus] Patch to fix unused variable

Hello Everyone,
    This patch is for the Cilkplus branch affecting both C and C++ compilers. 
This patch will fix an unused variable warning in collect2.c by enclosing the 
variable inside #ifdef TARGET_AIX_VERSION.

Thanks,

Balaji V. Iyer.
diff --git a/gcc/ChangeLog.cilk b/gcc/ChangeLog.cilk
index ea3dc6e..8893b9a 100644
--- a/gcc/ChangeLog.cilk
+++ b/gcc/ChangeLog.cilk
@@ -6,6 +6,8 @@
        (wrapper_local_cb): Likewise.
        * opts.c: Removed the CILKPLUS_IMPLEMENTED macro and the #ifdef and
        #ifndefs that uses this macro.
+       * collect2.c (main): Enclosed object_nbr declaration inside a
+       #ifdef TARGET_AIX_VERSION.
 
 2011-10-22  Balaji V. Iyer  <balaji.v.i...@intel.com>
 
diff --git a/gcc/collect2.c b/gcc/collect2.c
index 9240bc8..92ef7ba 100644
--- a/gcc/collect2.c
+++ b/gcc/collect2.c
@@ -1091,7 +1091,9 @@ main (int argc, char **argv)
   const char **ld2;
   char **object_lst;
   const char **object;
+#ifdef TARGET_AIX_VERSION
   int object_nbr = argc;
+#endif
   int first_file;
   int num_c_args;
   char **old_argv;

Reply via email to