Message ID | 49a6765f-5879-5fe2-2d8f-7ce52213a824@redhat.com |
---|---|
State | New |
Headers | show |
Series | warning control by group and location (PR 74765) | expand |
Add support for per-location warning groups. gcc/ChangeLog: * config/rl78/rl78.c (rl78_handle_naked_attribute): Replace a direct use of TREE_NO_WARNING with set_no_warning. diff --git a/gcc/config/rl78/rl78.c b/gcc/config/rl78/rl78.c index 4c34949a97f..1055d423c83 100644 --- a/gcc/config/rl78/rl78.c +++ b/gcc/config/rl78/rl78.c @@ -847,7 +847,7 @@ rl78_handle_naked_attribute (tree * node, /* Disable warnings about this function - eg reaching the end without seeing a return statement - because the programmer is doing things that gcc does not know about. */ - TREE_NO_WARNING (* node) = 1; + set_no_warning (* node); return NULL_TREE; }