bug-gnu-libiconv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-gnu-libiconv] [bug #66170] Pointer mismatch, cannot build with Appl


From: FX
Subject: [bug-gnu-libiconv] [bug #66170] Pointer mismatch, cannot build with Apple clang 16
Date: Wed, 4 Sep 2024 09:21:21 -0400 (EDT)

URL:
  <https://savannah.gnu.org/bugs/?66170>

                 Summary: Pointer mismatch, cannot build with Apple clang 16
                   Group: libiconv
               Submitter: fxcoudert
               Submitted: mer. 04 sept. 2024 13:21:17
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: mer. 04 sept. 2024 13:21:17    By: FX <fxcoudert>
Apple clang 16 turns on -Wincompatible-function-pointer-types by default, and
with -Werror is prevents compilation of libivonc because of this pointer
mismatch:

In file included from ./iconv.c:121:
./encodings.def:75:15: error: incompatible function pointer types initializing
'int (*)(conv_t, ucs4_t *, const unsigned char *, size_t)' (aka 'int
(*)(struct conv_struct *, unsigned int *, const unsigned char *, unsigned
long)') with an expression of type 'int (conv_t, ucs4_t *, const unsigned char
*, int)' (aka 'int (struct conv_struct *, unsigned int *, const unsigned char
*, int)') [-Wincompatible-function-pointer-types]
            { utf8mac_mbtowc, NULL },     { utf8mac_wctomb, NULL })
              ^~~~~~~~~~~~~~
./iconv.c:120:5: note: expanded from macro 'DEFENCODING'
  { xxx_ifuncs1,xxx_ifuncs2, xxx_ofuncs1,xxx_ofuncs2, ei_##xxx##_oflags },
    ^~~~~~~~~~~
In file included from ./iconv.c:121:
./encodings.def:75:45: error: incompatible function pointer types initializing
'int (*)(conv_t, unsigned char *, ucs4_t, size_t)' (aka 'int (*)(struct
conv_struct *, unsigned char *, unsigned int, unsigned long)') with an
expression of type 'int (conv_t, unsigned char *, ucs4_t, int)' (aka 'int
(struct conv_struct *, unsigned char *, unsigned int, int)')
[-Wincompatible-function-pointer-types]
            { utf8mac_mbtowc, NULL },     { utf8mac_wctomb, NULL })
                                            ^~~~~~~~~~~~~~
./iconv.c:120:30: note: expanded from macro 'DEFENCODING'
  { xxx_ifuncs1,xxx_ifuncs2, xxx_ofuncs1,xxx_ofuncs2, ei_##xxx##_oflags },
                             ^~~~~~~~~~~








    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66170>

_______________________________________________
Message posté via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]