clang 15 reports an error for -Wint-conversion by default.
Reported by Sam James <sam@gentoo.org> in
<https://savannah.gnu.org/bugs/?63793>.
* m4/terminfo.m4 (gl_TERMINFO_BODY): Avoid a -Wint-conversion warning
when testing for tparam and tparm.
* m4/termcap.m4 (gl_TERMCAP_BODY): Likewise.
+2023-02-11 Bruno Haible <bruno@clisp.org>
+
+ terminfo, termcap: Avoid wrong configure result with clang ≥ 15.
+ clang 15 reports an error for -Wint-conversion by default.
+ Reported by Sam James <sam@gentoo.org> in
+ <https://savannah.gnu.org/bugs/?63793>.
+ * m4/terminfo.m4 (gl_TERMINFO_BODY): Avoid a -Wint-conversion warning
+ when testing for tparam and tparm.
+ * m4/termcap.m4 (gl_TERMCAP_BODY): Likewise.
+
2023-02-11 Bruno Haible <bruno@clisp.org>
unilbrk: Don't compile unused functions outside of libunistring.
-# termcap.m4 serial 10
-dnl Copyright (C) 2000-2022 Free Software Foundation, Inc.
+# termcap.m4 serial 10.1
+dnl Copyright (C) 2000-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
char * tparam (const char *, void *, int, ...);
char buf;
]],
- [[return tparam ("\033\133%dm", &buf, 1, 8);]])],
+ [[return ! tparam ("\033\133%dm", &buf, 1, 8);]])],
[gl_cv_termcap_tparam=yes], [gl_cv_termcap_tparam=no])
CPPFLAGS="$gl_save_CPPFLAGS"
LIBS="$gl_save_LIBS"
#endif
char * tparm (const char *, ...);
]],
- [[return tparm ("\033\133%dm", 8);]])],
+ [[return ! tparm ("\033\133%dm", 8);]])],
[gl_cv_termcap_tparm=yes], [gl_cv_termcap_tparm=no])
CPPFLAGS="$gl_save_CPPFLAGS"
LIBS="$gl_save_LIBS"
-# terminfo.m4 serial 5
-dnl Copyright (C) 2000-2022 Free Software Foundation, Inc.
+# terminfo.m4 serial 5.1
+dnl Copyright (C) 2000-2023 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
dnl with or without modifications, as long as this notice is preserved.
char * tparam (const char *, void *, int, ...);
char buf;
]],
- [[return tparam ("\033\133%dm", &buf, 1, 8);]])],
+ [[return ! tparam ("\033\133%dm", &buf, 1, 8);]])],
[gl_cv_terminfo_tparam=yes],
[gl_cv_terminfo_tparam=no])
CPPFLAGS="$gl_save_CPPFLAGS"
#endif
char * tparm (const char *, ...);
]],
- [[return tparm ("\033\133%dm", 8);]])],
+ [[return ! tparm ("\033\133%dm", 8);]])],
[gl_cv_terminfo_tparm=yes], [gl_cv_terminfo_tparm=no])
CPPFLAGS="$gl_save_CPPFLAGS"
LIBS="$gl_save_LIBS"