diff options
Diffstat (limited to 'evaluate.c')
| -rw-r--r-- | evaluate.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -812,7 +812,7 @@ static int is_null_ptr(struct expression *expr) { if (expr->type != EXPR_VALUE || expr->value) return 0; - if (!is_ptr_type(expr->ctype)) + if (Wnon_pointer_null && !is_ptr_type(expr->ctype)) warning(expr->pos, "Using plain integer as NULL pointer"); return 1; } |
