From: Alan T. DeKok Date: Mon, 5 Jan 2026 00:18:23 +0000 (-0500) Subject: disable warnings for now X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdf6daccb47fc6a30a7f78681e9ae1f57722cea0;p=thirdparty%2Ffreeradius-server.git disable warnings for now --- diff --git a/src/lib/server/process.h b/src/lib/server/process.h index 0a6fb45e280..5614e98f8ed 100644 --- a/src/lib/server/process.h +++ b/src/lib/server/process.h @@ -118,6 +118,19 @@ typedef struct { PROCESS_RCTX_EXTRA_FIELDS } process_rctx_t; +/* + * C doesn't technically support forward declaration of static variables. Until such time as we + * rearrange all of the process code, disabling the warnings will have to do. + * + * A real fix is to provide a header file which contains only the macro definitions for the process state + * machine. The process files can include that, then define the function prototypes. Then define their + * own process_state[] state machine, then define the functions. + */ +#ifdef __clang__ +DIAG_OFF(tentative-definition-compat) +DIAG_OFF(tentative-definition-incomplete-type) +#endif + /* * Some protocols have the same packet codes for requests and replies. */