From 58dc04ac1ad62025f13d6b50341fa1fd89db4618 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 24 Jul 2024 11:26:43 +0200 Subject: [PATCH] src: fix -Wshadow warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/53885 Reviewed-By: Michaël Zasso Reviewed-By: Yagiz Nizipli Reviewed-By: Tobias Nießen Reviewed-By: Luigi Pinca --- src/util.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util.h b/src/util.h index 655197ff1ba604..b2c152a865ee76 100644 --- a/src/util.h +++ b/src/util.h @@ -146,9 +146,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. */ \