diff mbox series

[2/2] openldap: ignore incompatible-pointer-types errors for now.

Message ID 20240605063946.83219-2-leimaohui@fujitsu.com
State New
Headers show
Series [1/2] cmpi-bindings: ignore incompatible-pointer-types errors for now. | expand

Commit Message

Maohui Lei (Fujitsu) June 5, 2024, 6:39 a.m. UTC
From: Lei Maohui <leimaohui@fujitsu.com>

GCC 14 implicitly turns a warning into a compiler error:

| tls_g.c:971:57: error: passing argument 4 of 'gnutls_fingerprint' from incompatible pointer type [-Wincompatible-pointer-types]
|   971 |                                         keyhash.bv_val, &keyhash.bv_len ) < 0 ) {
|       |                                                         ^~~~~~~~~~~~~~~
|       |                                                         |
|       |                                                         ber_len_t * {aka long unsigned int *}
| In file included from tls_g.c:44:
| /build-ubinux-daily/tmp/work/armv7ahf-neon-ubinuxmllib32-linux-gnueabi/lib32-openldap/2.6.7/lib32-recipe-sysroot/usr/include/gnutls/gnutls.h:2406:32: note: expected 'size_t *' {aka 'unsigned int *'} but argument is of type 'ber_len_t *' {aka 'long unsigned int *'}
|  2406 |                        size_t *result_size);
|       |                        ^~~
| make[2]: *** [Makefile:432: tls_g.lo] Error 1

Signed-off-by: Lei Maohui <leimaohui@fujitsu.com>
---
 meta-oe/recipes-support/openldap/openldap_2.6.7.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/meta-oe/recipes-support/openldap/openldap_2.6.7.bb b/meta-oe/recipes-support/openldap/openldap_2.6.7.bb
index c229667d68..8bb801a1b1 100644
--- a/meta-oe/recipes-support/openldap/openldap_2.6.7.bb
+++ b/meta-oe/recipes-support/openldap/openldap_2.6.7.bb
@@ -31,7 +31,6 @@  inherit autotools-brokensep update-rc.d systemd pkgconfig
 # Required to work round AC_FUNC_MEMCMP which gets the wrong answer
 # when cross compiling (should be in site?)
 EXTRA_OECONF += "ac_cv_func_memcmp_working=yes"
-
 # CONFIG DEFINITIONS
 # The following is necessary because it cannot be determined for a
 # cross compile automagically.  Select should yield fine on all OE
@@ -39,7 +38,7 @@  EXTRA_OECONF += "ac_cv_func_memcmp_working=yes"
 EXTRA_OECONF += "--with-yielding-select=yes"
 # Shared libraries are nice...
 EXTRA_OECONF += "--enable-dynamic"
-
+CFLAGS += "-Wno-error=incompatible-pointer-types"
 PACKAGECONFIG ??= "asyncmeta gnutls modules \
                    mdb ldap meta null passwd proxycache dnssrv \
                    ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6', d)} \