diff options
Diffstat (limited to 'gcc/c-decl.c')
-rw-r--r-- | gcc/c-decl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-decl.c b/gcc/c-decl.c index 860b337fc95..1af84da3940 100644 --- a/gcc/c-decl.c +++ b/gcc/c-decl.c @@ -3320,6 +3320,7 @@ start_decl (struct c_declarator *declarator, struct c_declspecs *declspecs, if (TREE_CODE (decl) == VAR_DECL && current_scope != file_scope && TREE_STATIC (decl) + && !TREE_READONLY (decl) && DECL_DECLARED_INLINE_P (current_function_decl) && DECL_EXTERNAL (current_function_decl)) pedwarn ("%q+D is static but declared in inline function %qD " |