From 6e0150d4db457c46229cfedc269a7b6e846cc5f0 Mon Sep 17 00:00:00 2001 From: Eathox Date: Sun, 10 Nov 2024 05:06:50 +0100 Subject: [PATCH] Remove useless GREET macro from test --- .../warnings/pw3_padded_arg_inner/source.hpp | 5 ++-- .../warnings/pw3_padded_arg_inner/stderr.ansi | 24 +++++++++---------- 2 files changed, 14 insertions(+), 15 deletions(-) diff --git a/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/source.hpp b/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/source.hpp index 661f2eb9..25a3410e 100644 --- a/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/source.hpp +++ b/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/source.hpp @@ -1,6 +1,5 @@ #define HELLO(var1, var2) INNER(Hello, var1##var2) -#define GREET(var1, var2) INNER(Greetings, var1##var2) #define INNER(var1, var2) var1 var2 -value1 = HELLO(John,Smith); // Only inner -value2 = GREET(John, Smith); // Both call and inner +value1 = HELLO(John, Smith); // Only inner +value2 = HELLO(John, Smith); // Both call and inner diff --git a/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/stderr.ansi b/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/stderr.ansi index 89a3bb51..d9b194f8 100644 --- a/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/stderr.ansi +++ b/libs/preprocessor/tests/warnings/pw3_padded_arg_inner/stderr.ansi @@ -1,27 +1,27 @@ warning[PW3]: padding a macro argument - ┌─ source.hpp:1:39 + ┌─ source.hpp:4:21 │ -1 │ #define HELLO(var1, var2) INNER(Hello, var1##var2) - │ ^ padding a macro argument +4 │ value1 = HELLO(John, Smith); // Only inner + │ ^ padding a macro argument │ = note: padding a macro argument is likely unintended - = note: occured in: `INNER` + = note: occured in: `HELLO` warning[PW3]: padding a macro argument - ┌─ source.hpp:6:21 + ┌─ source.hpp:1:39 │ -6 │ value2 = GREET(John, Smith); // Both call and inner - │ ^ padding a macro argument +1 │ #define HELLO(var1, var2) INNER(Hello, var1##var2) + │ ^ padding a macro argument │ = note: padding a macro argument is likely unintended - = note: occured in: `GREET` + = note: occured in: `INNER` warning[PW3]: padding a macro argument - ┌─ source.hpp:2:43 + ┌─ source.hpp:5:21 │ -2 │ #define GREET(var1, var2) INNER(Greetings, var1##var2) - │ ^ padding a macro argument +5 │ value2 = HELLO(John, Smith); // Both call and inner + │ ^ padding a macro argument │ = note: padding a macro argument is likely unintended - = note: occured in: `INNER` + = note: occured in: `HELLO`