From 4be3e5d31fa3fbe6c80ad0973430074124b157bc Mon Sep 17 00:00:00 2001 From: Cheyenne Wills Date: Fri, 28 Oct 2022 17:53:15 -0600 Subject: [PATCH] libuafs: include com_err.h in ukernel_swig.i clang-16 is flagging an implicit-function-definition which results in a build error when --enable-warning is turned on. PERLUAFS/ukernel_swig_perl.c:1585:9: error: call to undeclared function 'afs_com_err'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] afs_com_err("AFS::ukernel", code, "parsing line: '%s'", line); ^ Add an include for afs/com_err.h to resolve the warning. Change-Id: Id02d8a3f0ec6d7d3a9f5ffe7fcacf1a6972700a0 Reviewed-on: https://gerrit.openafs.org/15179 Reviewed-by: Andrew Deason Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/libuafs/ukernel_swig.i | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libuafs/ukernel_swig.i b/src/libuafs/ukernel_swig.i index 94fc6d4df8..2958889b94 100644 --- a/src/libuafs/ukernel_swig.i +++ b/src/libuafs/ukernel_swig.i @@ -31,6 +31,7 @@ #include #include #include +#include %} %include "typemaps.i";