From: Owen Avery Date: Tue, 18 Jul 2023 19:55:51 +0000 (-0400) Subject: gccrs: Replace default argument with UNDEF_LOCATION X-Git-Tag: basepoints/gcc-15~2327 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e74b450d24074519c8c93dc55c507931b329c5a;p=thirdparty%2Fgcc.git gccrs: Replace default argument with UNDEF_LOCATION gcc/rust/ChangeLog: * ast/rust-ast-collector.h (TokenCollector::visit): Replace default argument with UNDEF_LOCATION. Signed-off-by: Owen Avery --- diff --git a/gcc/rust/ast/rust-ast-collector.h b/gcc/rust/ast/rust-ast-collector.h index 0001c5bbef8e..792f8bed723f 100644 --- a/gcc/rust/ast/rust-ast-collector.h +++ b/gcc/rust/ast/rust-ast-collector.h @@ -160,7 +160,7 @@ public: void visit (Visitable &v); void visit (LoopLabel &label); - void visit (Literal &lit, Location locus = {}); + void visit (Literal &lit, Location locus = UNDEF_LOCATION); void visit (FunctionParam ¶m); void visit (Attribute &attrib);