]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gccrs: Resolve static decl warning
authorjjasmine <tanghocle456@gmail.com>
Wed, 22 May 2024 18:25:07 +0000 (11:25 -0700)
committerArthur Cohen <arthur.cohen@embecosm.com>
Mon, 17 Mar 2025 15:35:41 +0000 (16:35 +0100)
gcc/rust/ChangeLog:

* expand/rust-macro-builtins-asm.h (parseAsmArg):
Resolve static decl warning
(parse_nonglobal_asm):
Resolve static decl warning

gcc/rust/expand/rust-macro-builtins-asm.h

index 163ad161b5a45a73db870f2c1e2f20e1b2695766..469dc5ae9067030d565bd8d59ef1d7d524b28c26 100644 (file)
@@ -11,11 +11,11 @@ int
 parseAsmArg (Parser<MacroInvocLexer> &p, TokenId last_token_id,
             AST::InlineAsm &inlineAsm,
             bool consumed_comma_without_formatted_string);
-static tl::optional<AST::Fragment>
+tl::optional<AST::Fragment>
 parse_global_asm (location_t invoc_locus, AST::MacroInvocData &invoc);
-static tl::optional<AST::Fragment>
+tl::optional<AST::Fragment>
 parse_nonglobal_asm (location_t invoc_locus, AST::MacroInvocData &invoc);
-static tl::optional<AST::Fragment>
+tl::optional<AST::Fragment>
 parse_asm (location_t invoc_locus, AST::MacroInvocData &invoc,
           bool is_global_asm);