building on GCC-based architectures. Add -Wno-incompatible-pointer-types only when using Clang. PR: 235512 Submitted by: Piotr Kubaj Approved by: maintainer