* lexsup.c (parse_args): Only set report_plugin_symbols if plugins
authorJoseph Myers <joseph@codesourcery.com>
Wed, 23 Mar 2011 19:53:06 +0000 (19:53 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Wed, 23 Mar 2011 19:53:06 +0000 (19:53 +0000)
are enabled.  Mark level as possibly unused.

ld/ChangeLog
ld/lexsup.c

index 23c6f175e8f4beb83ccf5301b34cbbce0843eda1..2325765cc01d02330df09574004deea556c340a4 100644 (file)
@@ -1,3 +1,8 @@
+2011-03-23  Joseph Myers  <joseph@codesourcery.com>
+
+       * lexsup.c (parse_args): Only set report_plugin_symbols if plugins
+       are enabled.  Mark level as possibly unused.
+
 2011-03-22  Eric B. Weddington  <eric.weddington@atmel.com>
 
        * Makefile.am (ALL_EMULATION_SOURCES): Add AVR XMEGA architectures.
index 8cf96eb6ff09f4603cef2b518ede97226e9df5ed..4f6a77becca19af80bf1f808c4e56257c6c6477a 100644 (file)
@@ -1330,10 +1330,12 @@ parse_args (unsigned argc, char **argv)
          if (optarg != NULL)
            {
              char *end;
-             int level = strtoul (optarg, &end, 0);
+             int level ATTRIBUTE_UNUSED = strtoul (optarg, &end, 0);
              if (*end)
                einfo (_("%P%F: invalid number `%s'\n"), optarg);
+#ifdef ENABLE_PLUGINS
              report_plugin_symbols = level > 1;
+#endif /* ENABLE_PLUGINS */
            }
          break;
        case 'v':