Compilation error because `iwdpm_new()` declaration is different than definition signature
mforys opened this issue · comments
There is a compilation error regarding the different declaration than the definition of
iwdpm_new() function.
Log from the compilation process is below:
➜ ios-webkit-debug-proxy git:(master) make
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/ios-webkit-debug-proxy -I/usr/local/Cellar/libimobiledevice/1.3.0_1/include -I/usr/local/Cellar/libusbmuxd/2.0.2/include -I/usr/local/Cellar/openssl@3/3.1.2/include -I/usr/local/include -I/usr/local/include -I/usr/local/Cellar/libusbmuxd/2.0.2/include -I/usr/local/include -I/usr/local/Cellar/openssl@3/3.1.2/include -g -O2 -Wall -Werror -MT ios_webkit_debug_proxy-ios_webkit_debug_proxy_main.o -MD -MP -MF .deps/ios_webkit_debug_proxy-ios_webkit_debug_proxy_main.Tpo -c -o ios_webkit_debug_proxy-ios_webkit_debug_proxy_main.o `test -f 'ios_webkit_debug_proxy_main.c' || echo './'`ios_webkit_debug_proxy_main.c
ios_webkit_debug_proxy_main.c:54:9: error: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
iwdpm_t iwdpm_new();
^
void
ios_webkit_debug_proxy_main.c:220:9: error: a function declaration without a prototype is deprecated in all versions of C and is not supported in C2x [-Werror,-Wdeprecated-non-prototype]
iwdpm_t iwdpm_new(int argc, char **argv, int *to_exit) {
^
2 errors generated.
make[2]: *** [ios_webkit_debug_proxy-ios_webkit_debug_proxy_main.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
➜ ios-webkit-debug-proxy git:(master)