[master] 2a6f3f43e Flexelint: Change include order
Nils Goroll
nils.goroll at uplex.de
Sun Nov 3 11:03:10 UTC 2024
commit 2a6f3f43e4f8466ced6eeaaf8025b7dcabea6a23
Author: Nils Goroll <nils.goroll at uplex.de>
Date: Sun Nov 3 11:56:22 2024 +0100
Flexelint: Change include order
to avoid an "already included" complaint on linux:
-- Module: ../../lib/libvarnish/vsha256.c (C)
File ../../lib/libvarnish/vsha256.c, Line 37
_
# include <endian.h>
Warning 537: Repeated include file '/usr/include/endian.h'
diff --git a/lib/libvarnish/vsha256.c b/lib/libvarnish/vsha256.c
index 8d92abc8c..6b6f756cb 100644
--- a/lib/libvarnish/vsha256.c
+++ b/lib/libvarnish/vsha256.c
@@ -31,8 +31,6 @@
#include "config.h"
-#include <sys/types.h>
-
#ifndef __DARWIN_BYTE_ORDER
# include <endian.h>
# define VBYTE_ORDER __BYTE_ORDER
@@ -42,6 +40,7 @@
# define VBIG_ENDIAN __DARWIN_BIG_ENDIAN
#endif
+#include <sys/types.h>
#include <stdint.h>
#include <string.h>
More information about the varnish-commit
mailing list