diff options
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r-- | gcc/tree-cfg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c index 34c6461..f18bb97 100644 --- a/gcc/tree-cfg.c +++ b/gcc/tree-cfg.c @@ -7342,9 +7342,9 @@ execute_warn_function_noreturn (void) && !TREE_THIS_VOLATILE (cfun->decl) && EDGE_COUNT (EXIT_BLOCK_PTR->preds) == 0 && !lang_hooks.missing_noreturn_ok_p (cfun->decl)) - warning (OPT_Wmissing_noreturn, "%Jfunction might be possible candidate " - "for attribute %<noreturn%>", - cfun->decl); + warning_at (DECL_SOURCE_LOCATION (cfun->decl), OPT_Wmissing_noreturn, + "function might be possible candidate " + "for attribute %<noreturn%>"); return 0; } |