Commit 75f7a46
abacus_fixer
fix: eliminate variadic macro warnings in REQUIRES_OK
Two related warnings were triggered:
- -Wvariadic-macro-arguments-omitted: memory.h called REQUIRES_OK
with only one argument (no variadic arg)
- -Wgnu-zero-variadic-macro-arguments: macros.h used GNU extension
'##__VA_ARGS__' to swallow the comma when __VA_ARGS__ was empty
Fix:
1. Add a message argument to the single-arg REQUIRES_OK call site
2. Drop the '##' GNU extension since all call sites now pass at
least one variadic argument1 parent 5f3af73 commit 75f7a46
2 files changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
81 | 81 | | |
82 | 82 | | |
83 | 83 | | |
84 | | - | |
| 84 | + | |
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
70 | 70 | | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| |||
0 commit comments