Re: git: c57cd4390a27 - main - lang/vala: disable incompatible function pointer type error
- In reply to: Charlie Li : "git: c57cd4390a27 - main - lang/vala: disable incompatible function pointer type error"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 26 Jun 2023 13:50:12 UTC
Charlie Li <vishwin@FreeBSD.org> writes: > +# remove after https://gitlab.gnome.org/GNOME/vala/-/issues/1408 is fixed > +CFLAGS+= -Wno-error=incompatible-function-pointer-types May break GCC archs and ports with USE_GCC or USES=compiler:gcc-c++11-lib. $ pkg install llvm15 gcc12 $ echo 'int main() {}' >a.c $ clang15 -Wno-error=incompatible-function-pointer-types a.c $ gcc12 -Wno-error=incompatible-function-pointer-types a.c cc1: error: '-Wno-error=incompatible-function-pointer-types': no option '-Wincompatible-function-pointer-types'; did you mean '-Wincompatible-pointer-types'? vs. (replace = with -) $ clang15 -Wno-error-incompatible-function-pointer-types a.c warning: unknown -Werror warning specifier: '-Wno-error-incompatible-function-pointer-types' [-Wunknown-warning-option] 1 warning generated. $ gcc12 -Wno-error-incompatible-function-pointer-types a.c vs. (silence the warning) $ clang15 -Wno-incompatible-function-pointer-types a.c $ gcc12 -Wno-incompatible-function-pointer-types a.c