[PATCH] make 'directive in argument list' clearer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The warning 'directive in argument list' is about macros'
arguments, not functions' ones.

Make this clearer in the warning message.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx>
---
 pre-process.c                            | 2 +-
 validation/preprocessor/preprocessor22.c | 8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/pre-process.c b/pre-process.c
index df208bcf9..ca92ff06d 100644
--- a/pre-process.c
+++ b/pre-process.c
@@ -272,7 +272,7 @@ static struct token *collect_arg(struct token *prev, int vararg, struct position
 		if (next->pos.newline && match_op(next, '#')) {
 			if (!next->pos.noexpand) {
 				sparse_error(next->pos,
-					     "directive in argument list");
+					     "directive in macro's argument list");
 				preprocessor_line(stream, p);
 				__free_token(next);	/* Free the '#' token */
 				continue;
diff --git a/validation/preprocessor/preprocessor22.c b/validation/preprocessor/preprocessor22.c
index af5bcb37f..fb28daaa5 100644
--- a/validation/preprocessor/preprocessor22.c
+++ b/validation/preprocessor/preprocessor22.c
@@ -20,10 +20,10 @@ define_struct(a, {
  * check-command: sparse -E $file
  *
  * check-error-start
-preprocessor/preprocessor22.c:6:1: error: directive in argument list
-preprocessor/preprocessor22.c:8:1: error: directive in argument list
-preprocessor/preprocessor22.c:10:1: error: directive in argument list
-preprocessor/preprocessor22.c:12:1: error: directive in argument list
+preprocessor/preprocessor22.c:6:1: error: directive in macro's argument list
+preprocessor/preprocessor22.c:8:1: error: directive in macro's argument list
+preprocessor/preprocessor22.c:10:1: error: directive in macro's argument list
+preprocessor/preprocessor22.c:12:1: error: directive in macro's argument list
  * check-error-end
  *
  * check-output-start
-- 
2.23.0




[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux