aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2005-11-27 01:02:24 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-27 17:40:51 -0800
commit12c4db74356adea4a882d0785be3fc4b01d12034 (patch)
tree9d8a172f27312692aa7fd808d7d4e7d885dbabf1 /pre-process.c
parent[PATCH] saner handling of #if[n]def syntax errors (diff)
downloadsparse-12c4db74356adea4a882d0785be3fc4b01d12034.tar.gz
sparse-12c4db74356adea4a882d0785be3fc4b01d12034.tar.bz2
sparse-12c4db74356adea4a882d0785be3fc4b01d12034.zip
[PATCH] remove bogus double warning on #define/#undef syntax
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'pre-process.c')
-rw-r--r--pre-process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pre-process.c b/pre-process.c
index 0016873..655b49f 100644
--- a/pre-process.c
+++ b/pre-process.c
@@ -1065,7 +1065,7 @@ static int do_handle_define(struct stream *stream, struct token **line, struct t
if (token_type(left) != TOKEN_IDENT) {
sparse_error(token->pos, "expected identifier to 'define'");
- return 0;
+ return 1;
}
if (stream->constant == CONSTANT_FILE_MAYBE)
@@ -1138,7 +1138,7 @@ static int handle_undef(struct stream *stream, struct token **line, struct token
if (token_type(left) != TOKEN_IDENT) {
sparse_error(token->pos, "expected identifier to 'undef'");
- return 0;
+ return 1;
}
if (stream->constant == CONSTANT_FILE_MAYBE)