Skip to content

Commit 5a57599

Browse files
morrisonleviclaude
andcommitted
fix(appsec): pass __VA_ARGS__ through CONFIG to SYSCFG to avoid empty variadic
clang 19 with -Werror,-Wc23-extensions rejects calling a variadic macro with no argument for '...'. CONFIG's body called SYSCFG(type, name) with only 2 args. Pass CONFIG's own __VA_ARGS__ through instead — CONFIG is always called with at least a default value, so the variadic arg is never empty. SYSCFG ignores the extra args in this context anyway. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 27fc984 commit 5a57599

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

appsec/src/extension/configuration.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ typedef enum { DD_CONFIGURATION } dd_config_id;
116116
zai_config_memoized_entries[DDAPPSEC_CONFIG_##name].decoded_value)
117117
#define CONFIG(type, name, ...) \
118118
type(get_##name, *zai_config_get_value(DDAPPSEC_CONFIG_##name)) \
119-
SYSCFG(type, name)
119+
SYSCFG(type, name, __VA_ARGS__)
120120
DD_CONFIGURATION
121121
#undef CONFIG
122122
#undef SYSCFG

0 commit comments

Comments
 (0)