Collin Funk wrote: > Hello. When compiling gettext from master I get the following warning: > > ./math.h:46:2: warning: #include_next in file found relative to primary > source file or found by absolute path; will search from start of include path > [-Winclude-next-absolute-path] > 46 | #include_next <math.h> > > I've attached a patch that seems to fix this. I based it off the following > two commits: > > https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=f4fccf8efdd09d5e38f49f6ae1962797ce3e8e9c > https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=2a5409cf2ac62ed273589c72bb8ae0031f06a219
Thanks, applied! I also applied this patch, to complete <https://lists.gnu.org/archive/html/bug-gnulib/2023-12/msg00072.html>: 2024-02-17 Bruno Haible <br...@clisp.org> error: More clang -Winclude-next-absolute-path silencing. * modules/error-h (Include): Suggest <error.h>, not "error.h". * m4/error_h.m4: Write #include <error.h>. diff --git a/m4/error_h.m4 b/m4/error_h.m4 index f8016ce3f8..006770c4d3 100644 --- a/m4/error_h.m4 +++ b/m4/error_h.m4 @@ -5,7 +5,7 @@ dnl with or without modifications, as long as this notice is preserved. dnl From Bruno Haible. -dnl Provide a working "error.h". +dnl Provide a working <error.h>. AC_DEFUN_ONCE([gl_ERROR_H], [ diff --git a/modules/error-h b/modules/error-h index eeb5801732..2f43279d1b 100644 --- a/modules/error-h +++ b/modules/error-h @@ -35,7 +35,7 @@ error.h: error.in.h $(top_builddir)/config.status $(CXXDEFS_H) MOSTLYCLEANFILES += error.h error.h-t Include: -"error.h" +<error.h> License: LGPLv2+