From adc2a5765c70f9f8a9ebe17f0dc430f773e75dfb Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 17 Jul 2024 14:54:46 +0200 Subject: [PATCH] src: fix -Wshadow warning --- src/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.h b/src/util.h index 93a79f8761ee65..a3fa79f749d94e 100644 --- a/src/util.h +++ b/src/util.h @@ -144,9 +144,9 @@ void DumpJavaScriptBacktrace(FILE* fp); do { \ /* Make sure that this struct does not end up in inline code, but */ \ /* rather in a read-only data section when modifying this code. */ \ - static const node::AssertionInfo args = { \ + static const node::AssertionInfo error_and_abort_args = { \ __FILE__ ":" STRINGIFY(__LINE__), #expr, PRETTY_FUNCTION_NAME}; \ - node::Assert(args); \ + node::Assert(error_and_abort_args); \ /* `node::Assert` doesn't return. Add an [[noreturn]] abort() here to */ \ /* make the compiler happy about no return value in the caller */ \ /* function when calling ERROR_AND_ABORT. */ \