aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2011-03-23 19:53:06 +0000
committerJoseph Myers <joseph@codesourcery.com>2011-03-23 19:53:06 +0000
commitd436a15e02e0c7d6c54abb6ed6e09a666dfb3255 (patch)
tree952ce666df0fa8facbbda2a26b6ca4a50d289aab /ld/lexsup.c
parent0ba1096ad5c3a2dc64e6f30c122e7d9c205eef90 (diff)
downloadgdb-d436a15e02e0c7d6c54abb6ed6e09a666dfb3255.zip
gdb-d436a15e02e0c7d6c54abb6ed6e09a666dfb3255.tar.gz
gdb-d436a15e02e0c7d6c54abb6ed6e09a666dfb3255.tar.bz2
* lexsup.c (parse_args): Only set report_plugin_symbols if plugins
are enabled. Mark level as possibly unused.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ld/lexsup.c b/ld/lexsup.c
index 8cf96eb..4f6a77b 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -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':