Commit 32c9cf2
committed
Initialize fallback command tag for CompileFunctionStmt
`CreateCommandTag()` can leave `tag` uninitialized for
`CompileFunctionStmt` when objtype is neither FUNCTION nor PROCEDURE.
Callers normally pass one of those two values, but Clang still reports
the missing fallback path.
Warning excerpt:
```
utility.c:2757:13: warning: variable 'tag' is used uninitialized whenever 'if' condition is false
[-Wsometimes-uninitialized]
```
Set `tag = CMDTAG_UNKNOWN` in the remaining branch so the fallback
behavior is explicit.1 parent 0da228b commit 32c9cf2
1 file changed
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2748 | 2748 | | |
2749 | 2749 | | |
2750 | 2750 | | |
| 2751 | + | |
| 2752 | + | |
2751 | 2753 | | |
2752 | 2754 | | |
2753 | 2755 | | |
| |||
0 commit comments