aboutsummaryrefslogtreecommitdiff
path: root/decl.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2024-04-19 20:28:26 -0700
committerMichael Forney <mforney@mforney.org>2024-04-19 20:30:05 -0700
commit6ffd48df61b75c728021d682c21b41d232c4b46c (patch)
tree90906efe0757859146e43f60cc0e4e5261e34d9f /decl.c
parent0c1f837141457574bd71ef0d761613ba6a941380 (diff)
decl: Help gcc see that variable is not used uninitialized
Diffstat (limited to 'decl.c')
-rw-r--r--decl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/decl.c b/decl.c
index 8f35033..17b5e2e 100644
--- a/decl.c
+++ b/decl.c
@@ -594,6 +594,7 @@ declaratortypes(struct scope *s, struct list *result, char **name, struct scope
t->u.func.nparam = 0;
paramend = &t->u.func.params;
s = mkscope(s);
+ d = NULL;
do {
if (consume(TELLIPSIS)) {
t->u.func.isvararg = true;