Date: Mon, 26 Jun 2023 15:50:12 +0200 From: Jan Beich <jbeich@FreeBSD.org> To: Charlie Li <vishwin@FreeBSD.org> Cc: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: Re: git: c57cd4390a27 - main - lang/vala: disable incompatible function pointer type error Message-ID: <edly-ib8r-wny@FreeBSD.org> In-Reply-To: <202306240402.35O42JCf020544@gitrepo.freebsd.org> (Charlie Li's message of "Sat, 24 Jun 2023 04:02:19 GMT") References: <202306240402.35O42JCf020544@gitrepo.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?edly-ib8r-wny>