aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Triplett <josh@freedesktop.org>2007-08-31 14:39:26 -0700
committerJosh Triplett <josh@freedesktop.org>2007-08-31 14:39:26 -0700
commit78bb259f64e5c2deafe520af3349314ec4aa84e9 (patch)
treea82ead83dcf63d1970164669edd696da81d107c2 /expand.c
parentcgcc: Sparse accepts -Wcast-to-as, not -Wcast-to-address-space (diff)
downloadsparse-78bb259f64e5c2deafe520af3349314ec4aa84e9.tar.gz
sparse-78bb259f64e5c2deafe520af3349314ec4aa84e9.tar.bz2
sparse-78bb259f64e5c2deafe520af3349314ec4aa84e9.zip
Rename Wundefined_preprocessor to Wundef to match the command-line argument
Signed-off-by: Josh Triplett <josh@freedesktop.org>
Diffstat (limited to 'expand.c')
-rw-r--r--expand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expand.c b/expand.c
index fd74fef..032f0c5 100644
--- a/expand.c
+++ b/expand.c
@@ -41,7 +41,7 @@ static int expand_symbol_expression(struct expression *expr)
struct symbol *sym = expr->symbol;
if (sym == &zero_int) {
- if (Wundefined_preprocessor)
+ if (Wundef)
warning(expr->pos, "undefined preprocessor identifier '%s'", show_ident(expr->symbol_name));
expr->type = EXPR_VALUE;
expr->value = 0;