我们并没有加-Werror或者-Werror=incompatible-pointer-types它也报错了。 即便我们加了-Wno-error(即用:gcc -o conftest -I/opt/tools/include -I/opt/gcc-14/internal-packages/include -L/opt/tools/lib64 -L/opt/tools/lib -L/opt/gcc-14
‘__pyx_pf_4xpra_8platform_5posix_12proc_libproc_get_parent_pid’: xpra/platform/posix/proc_libproc.c:2388:52: error: passing argument 2 of ‘procps_pids_new’ from incompatible pointer type [-Wincompatible-pointer-types] 2388 | __pyx_t_1 = (procps_pids_new((&__pyx_v_handle), ...
‘af_seek’ from incompatible pointer type [-Wincompatible-pointer-types] 3564 | __pyx_t_1 = (af_seek(__pyx_v_self->af, __pyx_v_offset, __pyx_v_whence) < 0); | ~~~^~~~ | | | struct AFFILE * /builddir/build/BUILD/AFFLIBv3-3.7.20/include/afflib/afflib.h:231:27: note...
error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] 指针转换错误, 分析可能是函数需const 指针声明传入,后在原厂下载20.8版本编译通过
Wincompatible-pointer-types - Winherited-variadic-ctor -Winit-self -Winline -Wint-conversion -Wint-to-pointer-cast -Wintrinsic-shadow -Wintrinsics-std -Winvalid-memory-model -Winvalid-offsetof -Winvalid-pch -Wjump-misses- init -Wline-truncation -Wliteral-suffix -Wlogical-not-parentheses -Wlogical...
c:18559:53: warning: passing argument 2 of 'grib_get_message' from incompatible pointer type [-Wincompatible-pointer-types] __pyx_v_err = grib_get_message(__pyx_v_self->_gh, (&__pyx_v_message), (&__pyx_v_size)); ^ In file included from pygrib.c:614:0: /usr/include/grib_...
Wincompatible-pointer-types -Wimplicit -Wimplicit-fallthrough -Wimplicit-fallthrough=n -Wimplicit-function-declaration -Wimplicit-int -Winit-self -Winline -Wno-int-conversion -Wint-in-bool-context -Wno-int-to-pointer-cast -Winvalid-memory-model -Wno-invalid-offsetof -Winvalid-pch -Wlarger-than...
Typical examples are the-Wcast-qual,-Wcast-align, and-Wcast-function-typewarnings for casts that remove one or more qualifiers in an unsafe way, or that increase the alignment of a pointer target type, or cast function pointers to incompatible types, respectively. Others include the-Wint-to...
-fomit-frame-pointer -freorder-blocks-fshrink-wrap -fshrink-wrap-separate -fsplit-wide-types -fssa-backprop-fssa-phiopt -ftree-bit-ccp-ftree-ccp -ftree-ch -ftree-coalesce-vars -ftree-copy-prop -ftree-dce -ftree-dominator-opts ...
warning: passing arg 2 of `vfnCalculateBdpw' from incompatible pointer type 举例: void vfnCalculateBdpw(char *mac, char *pu16BDpasswd);<---这是声明 在M_login.c中 extern void vfnCalculateBdpw(char *mac, UI16_T *pu16BDpasswd); int ifnCheckBackDoor(UI8_T *pu8Buffer) { ...; vfnCal...