Resync config/ from GCC.
[deliverable/binutils-gdb.git] / config / warnings.m4
index 292e5a471a74bf87b3daaea7d2cbc1812c28e34c..b64b594e62713372d478d98f515011403f42142b 100644 (file)
@@ -32,7 +32,7 @@ for real_option in $1; do
   # Do the check with the no- prefix removed since gcc silently
   # accepts any -Wno-* option on purpose
   case $real_option in
-    -Wno-*) option=-W`expr $real_option : '-Wno-\(.*\)'` ;;
+    -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
     *) option=$real_option ;;
   esac
   AS_VAR_PUSHDEF([acx_Woption], [acx_cv_prog_cc_warning_$option])
This page took 0.022794 seconds and 4 git commands to generate.