]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - gcc/cp/call.c
Wrap option names in gcc internal messages with %< and %>.
[thirdparty/gcc.git] / gcc / cp / call.c
index c50d9c8b3d19914158e8954e8b1270c4d699a9a5..98aa5ee89f72e6ed0d3f9ff5749945ca3fcb3033 100644 (file)
@@ -7499,7 +7499,7 @@ convert_arg_to_ellipsis (tree arg, tsubst_flags_t complain)
              && TYPE_MODE (TREE_TYPE (prom)) != TYPE_MODE (arg_type)
              && (complain & tf_warning))
            warning_at (loc, OPT_Wabi, "scoped enum %qT passed through ... as "
-                       "%qT before -fabi-version=6, %qT after", arg_type,
+                       "%qT before %<-fabi-version=6%>, %qT after", arg_type,
                        TREE_TYPE (prom), ENUM_UNDERLYING_TYPE (arg_type));
          if (!abi_version_at_least (6))
            arg = prom;
@@ -8335,7 +8335,8 @@ build_over_call (struct z_candidate *cand, int flags, tsubst_flags_t complain)
              pedwarn (DECL_SOURCE_LOCATION (cand->fn), 0,
                       "  in call to %qD", cand->fn);
              pedwarn (input_location, 0,
-                      "  (you can disable this with -fno-deduce-init-list)");
+                      "  (you can disable this with "
+                      "%<-fno-deduce-init-list%>)");
            }
        }