]> Savannah Git Hosting - gnulib.git/commitdiff
c32_apply_type_test: Fix compilation error with GCC < 9.
authorBruno Haible <bruno@clisp.org>
Sat, 15 Jul 2023 07:47:06 +0000 (09:47 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 15 Jul 2023 07:47:06 +0000 (09:47 +0200)
* lib/uchar.in.h (c32_apply_type_test) [_GL_WCHAR_T_IS_UCS4]: Remove
_GL_ARG_NONNULL attribute.

ChangeLog
lib/uchar.in.h

index 52b47d42c2e0b80291f13ecff090c114266054f7..a38c75502e1931c4bb0701fbf31f6f0924054808 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-07-15  Bruno Haible  <bruno@clisp.org>
+
+       c32_apply_type_test: Fix compilation error with GCC < 9.
+       * lib/uchar.in.h (c32_apply_type_test) [_GL_WCHAR_T_IS_UCS4]: Remove
+       _GL_ARG_NONNULL attribute.
+
 2023-07-13  Bruno Haible  <bruno@clisp.org>
 
        mbchar: Optimize is_basic.
index eed6db3c54d6abc97f8ea4d762e83d8cbaefaf8a..1c2bd008f549b230da231d062c2b8ad9557cc653 100644 (file)
@@ -710,14 +710,19 @@ _GL_CXXALIASWARN (c32_get_type_test);
    This function is the counterpart of function 'iswctype' for wide characters.
  */
 #if @GNULIB_C32_APPLY_TYPE_TEST@
-# if _GL_WCHAR_T_IS_UCS4 && !defined IN_C32_APPLY_TYPE_TEST
+# if _GL_WCHAR_T_IS_UCS4
+#  if !defined IN_C32_APPLY_TYPE_TEST
 _GL_BEGIN_C_LINKAGE
-_GL_INLINE _GL_ARG_NONNULL ((2)) int
+_GL_INLINE int
 c32_apply_type_test (wint_t wc, c32_type_test_t property)
 {
   return iswctype (wc, property);
 }
 _GL_END_C_LINKAGE
+#  else
+_GL_FUNCDECL_SYS (c32_apply_type_test, int,
+                  (wint_t wc, c32_type_test_t property));
+#  endif
 # else
 _GL_FUNCDECL_SYS (c32_apply_type_test, int,
                   (wint_t wc, c32_type_test_t property)