Skip to content

build: fix compatibility with stricter C99 compilers

Sam James requested to merge thesamesam/openldap:clang-16-configure into master

Fix the following warnings:

  • -Wimplicit-int (fatal with Clang 16)
  • -Wimplicit-function-declaration (fatal with Clang 16)
  • -Wincompatible-function-pointer-types (fatal with Clang 16)
  • -Wint-conversion (fatal with Clang 15)
  • Old style prototypes (K&R, removed from C23)

These warnings-now-error led to misconfigurations and failure to build OpenLDAP, as the tests used during configure caused the wrong results to be emitted.

For more information, see [0] or LLVM's Discourse [1], the Gentoo wiki [2], or the (new) c-std-porting mailing list [3].

[0] [1] [2] [3] hosted at

Bug: Signed-off-by: Sam James

Merge request reports