]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
disable warnings for now
authorAlan T. DeKok <aland@freeradius.org>
Mon, 5 Jan 2026 00:18:23 +0000 (19:18 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 5 Jan 2026 01:39:57 +0000 (20:39 -0500)
src/lib/server/process.h

index 0a6fb45e280bf5cbf90bbeaf2f19ddd09362dde7..5614e98f8ed13489563bf44dc43da8a246e4a884 100644 (file)
@@ -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.
  */