summaryrefslogtreecommitdiff
path: root/rtems-syms.cpp
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2012-11-21 12:12:50 +1100
committerChris Johns <chrisj@rtems.org>2012-11-21 12:12:50 +1100
commitc99ede97151dfe31a7e79b9a4b0e1037cac0f873 (patch)
treea73fcfbd8a875f273e559e8830a338a6a012dc52 /rtems-syms.cpp
parent295048c8c7fbab738aab54e7d95a998c27813d2f (diff)
Remove the warning about the warnings option on newer gccs.
Diffstat (limited to 'rtems-syms.cpp')
-rw-r--r--rtems-syms.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtems-syms.cpp b/rtems-syms.cpp
index 74ebcd8..926d1f3 100644
--- a/rtems-syms.cpp
+++ b/rtems-syms.cpp
@@ -140,7 +140,9 @@ main (int argc, char* argv[])
std::string cc_name;
bool standard_libs = false;
bool exec_prefix_set = false;
+#if HAVE_WARNINGS
bool warnings = false;
+#endif
libpaths.push_back (".");
@@ -163,7 +165,9 @@ main (int argc, char* argv[])
break;
case 'w':
+#if HAVE_WARNINGS
warnings = true;
+#endif
break;
case 'l':