(AFFILE *af,int64_t pos,int whence); // returns new position | ~~~^~ pyaff.c: In function ‘__pyx_pf_5pyaff_6affile_6get_seg’: pyaff.c:3788:39: error: passing argument 1 of ‘af_get_seg’ from incompatible pointer type [-Wincompatible-pointer-types] 3788 | __pyx_t_6 ...
Werror=return-type -flto=auto -g -Wno-unused-local-typedefs -Wno-unused-but-set-variable -Wno-deprecated-declarations -Wno-sizeof-pointer-memaccess -Wno-cpp -Wall -Werror -Wno-pointer-sign -Wno-unused-value -fno-strict-aliasing -Wno-unknown-pragmas -Wno-uninitialized -Wno-deprecated-...
虽然说这里zsh的代码也有问题,但是可以看到。我们并没有加-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/lib64 -L/opt/...
-Wchkp 在GCC 9 中已弃用。此开关无效。 -Wclass-conversion 当转换函数由于转换为的类型而永远不会被调用时发出警告。 -Wclass-memaccess 警告对类类型对象的不安全原始内存写入。 -Wclobbered 警告可能被“longjmp”或“vfork”更改的变量。 -Wcomment 对可能嵌套的块注释和跨越多个物理行的 C++ 注释发出警告。
lrwxrwxrwx 1 root root 15 3月 25 18:16 gcc -> /usr/bin/gcc-12 3.厂家提供驱动源码编译 CLASS_ATTRO_RO(version) 宏报 error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] 指针转换错误, 分析可能是函数需const 指针声明传入,后在原厂下载20.8版本编译通过...
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...
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_...
Wdisabled-optimization -Wno-div-by-zero -Wdouble-promotion -Wempty-body -Wenum-compare -Wno-endif-labels -Werror -Werror=* -Wfatal-errors -Wfloat-equal -Wformat -Wformat=2 -Wno-format-contains-nul -Wno-format-extra-args -Wformat-nonliteral -Wformat-security -Wformat-y2k -Wframe-larger-...
–Werror Same as –errwarn=%all –Wpedantic Same as –pedantic –fno-elimininate-unused-debug-types Accept and ignore –fopenmp Same as –xopenmp –fPIC Same as –KPIC –fpic Same as –Kpic –fplan9-extensions Accept and ignore (C only). –fplugin-arg-name=t Warn and ignore (C onl...
libc-start.c:279:30: error: implicit declaration of function ‘__builtin_thread_pointer’ [-Werror=implicit-function-declaration] libc-start.c:279:30: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] ...