diff options
| author | Al Viro <viro@zeniv.linux.org.uk> | 2005-11-27 01:02:24 -0500 |
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-11-27 17:40:51 -0800 |
| commit | 12c4db74356adea4a882d0785be3fc4b01d12034 (patch) | |
| tree | 9d8a172f27312692aa7fd808d7d4e7d885dbabf1 /pre-process.c | |
| parent | a5e1e8c5ca4af5aceb620a09612999af6dfc3e78 (diff) | |
| download | sparse-dev-12c4db74356adea4a882d0785be3fc4b01d12034.tar.gz | |
[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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pre-process.c b/pre-process.c index 00168735..655b49f0 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) |
