You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
libavutil/dict.c:166:15: error: incompatible pointer to integer conversion initializing 'uintptr_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
uintptr_t ptr = NULL;
^ ~~~~
libavutil/dict.c:171:12: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
^~~~~~~~~~
libavutil/dict.c:166:15: warning: unused variable 'ptr' [-Wunused-variable]
uintptr_t ptr = NULL;
^
libavutil/dict.c:175:14: error: incompatible pointer to integer conversion initializing 'uintptr_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
uintptr_t ptr = NULL;
^ ~~~~
libavutil/dict.c:178:15: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
^~~~~~~~~~
libavutil/dict.c:182:15: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
^~~~~~~~~~
libavutil/dict.c:189:48: warning: format specifies type 'void *' but the argument has type 'uintptr_t' (aka 'unsigned long') [-Wformat]
snprintf(valuestr, sizeof(valuestr), "%p", value);
~~ ^~~~~
%lu
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), VA_ARGS)
^~~~~~~~~~~
3 warnings and 5 errors generated.
make: *** [libavutil/dict.o] Error 1
uintptr_t ptr 不能赋值 NULL
The text was updated successfully, but these errors were encountered:
liuqianteng
changed the title
Mac 14.4.1 iOS SDK 17.4.1 执行 ./compile-ffmpeg.sh all armv7 和 arm64 分别都有报错
Mac M3芯片 14.4.1 iOS SDK 17.4.1 执行 ./compile-ffmpeg.sh all armv7 和 arm64 分别都有报错
Apr 26, 2024
libavutil/dict.c:166:15: error: incompatible pointer to integer conversion initializing 'uintptr_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
uintptr_t ptr = NULL;
^ ~~~~
libavutil/dict.c:171:12: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
libavutil/dict.c:166:15: warning: unused variable 'ptr' [-Wunused-variable]
uintptr_t ptr = NULL;
^
libavutil/dict.c:175:14: error: incompatible pointer to integer conversion initializing 'uintptr_t' (aka 'unsigned long') with an expression of type 'void *' [-Wint-conversion]
uintptr_t ptr = NULL;
^ ~~~~
libavutil/dict.c:178:15: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
libavutil/dict.c:182:15: error: incompatible pointer to integer conversion returning 'void *' from a function with result type 'uintptr_t' (aka 'unsigned long') [-Wint-conversion]
return NULL;
^~~~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/15.0.0/include/stddef.h:89:16: note: expanded from macro 'NULL'
define NULL ((void*)0)
libavutil/dict.c:189:48: warning: format specifies type 'void *' but the argument has type 'uintptr_t' (aka 'unsigned long') [-Wformat]
snprintf(valuestr, sizeof(valuestr), "%p", value);
~~ ^~~~~
%lu
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS17.4.sdk/usr/include/secure/_stdio.h:57:62: note: expanded from macro 'snprintf'
__builtin___snprintf_chk (str, len, 0, __darwin_obsz(str), VA_ARGS)
^~~~~~~~~~~
3 warnings and 5 errors generated.
make: *** [libavutil/dict.o] Error 1
uintptr_t ptr 不能赋值 NULL
The text was updated successfully, but these errors were encountered: