warnings
hdatma opened this issue · 4 comments
hdatma commented
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o alloc.o alloc.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o c_ksh.o c_ksh.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o c_sh.o c_sh.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o c_test.o c_test.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o c_ulimit.o c_ulimit.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o edit.o edit.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o emacs.o emacs.c
emacs.c:862:15: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcmp(k->seq, line))
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here
int strcmp(const char *__s1, const char *__s2);
^
emacs.c:1343:10: warning: passing 'unsigned char *' to parameter of type 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
strlcpy(k->seq, str, count + 1);
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/secure/_string.h:105:28: note: expanded from macro 'strlcpy'
__builtin___strlcpy_chk (dest, src, len, __darwin_obsz (dest))
^~~~
emacs.c:1376:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
kb_decode(k->seq), k->ftab->xf_name);
^~~~~~
emacs.c:1271:23: note: passing argument to parameter 's' here
kb_decode(const char *s)
^
emacs.c:1378:31: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
shprintf("%s = ", kb_decode(k->seq));
^~~~~~
emacs.c:1271:23: note: passing argument to parameter 's' here
kb_decode(const char *s)
^
emacs.c:1420:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcmp(k->seq, in)) {
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here
int strcmp(const char *__s1, const char *__s2);
^
emacs.c:1431:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcmp(k->seq, in)) {
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here
int strcmp(const char *__s1, const char *__s2);
^
emacs.c:1442:16: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcmp(k->seq, in)) {
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here
int strcmp(const char *__s1, const char *__s2);
^
emacs.c:1457:17: warning: passing 'unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strcmp(k->seq, in)) {
^~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:77:25: note: passing argument to parameter '__s1' here
int strcmp(const char *__s1, const char *__s2);
^
8 warnings generated.
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o eval.o eval.c
eval.c:322:19: warning: implicit conversion from 'int' to 'char' changes value from 192 to -64 [-Wconstant-conversion]
*dp++ = '@' + 0x80;
~ ~~~~^~~~~~
1 warning generated.
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o exec.o exec.c
exec.c:1256:8: warning: implicit declaration of function 'strtonum' is invalid in C99 [-Wimplicit-function-declaration]
i = strtonum(s, 1, argct, &errstr);
^
1 warning generated.
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o expr.o expr.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o history.o history.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o io.o io.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o jobs.o jobs.c
jobs.c:1436:9: warning: implicit declaration of function 'strtonum' is invalid in C99 [-Wimplicit-function-declaration]
job = strtonum(cp, 1, INT_MAX, &errstr);
^
1 warning generated.
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o lex.o lex.c
lex.c:1227:5: warning: implicit declaration of function 'time' is invalid in C99 [-Wimplicit-function-declaration]
time(&t);
^
lex.c:1228:10: warning: implicit declaration of function 'localtime' is invalid in C99 [-Wimplicit-function-declaration]
tm = localtime(&t);
^
lex.c:1228:8: warning: incompatible integer to pointer conversion assigning to 'struct tm *' from 'int' [-Wint-conversion]
tm = localtime(&t);
^ ~~~~~~~~~~~~~
lex.c:1229:5: warning: implicit declaration of function 'strftime' is invalid in C99 [-Wimplicit-function-declaration]
strftime(strbuf, sizeof strbuf, "%a %b %d", tm);
^
lex.c:1243:8: warning: incompatible integer to pointer conversion assigning to 'struct tm *' from 'int' [-Wint-conversion]
tm = localtime(&t);
^ ~~~~~~~~~~~~~
lex.c:1292:8: warning: incompatible integer to pointer conversion assigning to 'struct tm *' from 'int' [-Wint-conversion]
tm = localtime(&t);
^ ~~~~~~~~~~~~~
lex.c:1297:8: warning: incompatible integer to pointer conversion assigning to 'struct tm *' from 'int' [-Wint-conversion]
tm = localtime(&t);
^ ~~~~~~~~~~~~~
lex.c:1302:8: warning: incompatible integer to pointer conversion assigning to 'struct tm *' from 'int' [-Wint-conversion]
tm = localtime(&t);
^ ~~~~~~~~~~~~~
lex.c:1307:8: warning: incompatible integer to pointer conversion assigning to 'struct tm *' from 'int' [-Wint-conversion]
tm = localtime(&t);
^ ~~~~~~~~~~~~~
9 warnings generated.
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o mail.o mail.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o main.o main.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o mknod.o mknod.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o misc.o misc.c
misc.c:718:22: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((colon = strchr(pattern, ':')) == NULL || colon[1] != MAGIC) {
^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:76:26: note: passing argument to parameter '__s' here
char *strchr(const char *__s, int __c);
^
misc.c:718:13: warning: assigning to 'const unsigned char *' from 'char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if ((colon = strchr(pattern, ':')) == NULL || colon[1] != MAGIC) {
^ ~~~~~~~~~~~~~~~~~~~~
misc.c:726:16: warning: passing 'const unsigned char *' to parameter of type 'const char *' converts between pointers to integer types with different sign [-Wpointer-sign]
if (!strncmp(pattern, cc->name, len) && cc->name[len] == '\0') {
^~~~~~~
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/string.h:84:26: note: passing argument to parameter '__s1' here
int strncmp(const char *__s1, const char *__s2, size_t __n);
^
misc.c:751:17: warning: initializing 'const char *' with an expression of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
const char *pp = p + (*p == MAGIC) + 2;
^ ~~~~~~~~~~~~~~~~~~~~~
misc.c:752:23: warning: passing 'const char *' to parameter of type 'const unsigned char *' converts between pointers to integer types with different sign [-Wpointer-sign]
rv = posix_cclass(pp, sub, &p);
^~
misc.c:711:35: note: passing argument to parameter 'pattern' here
posix_cclass(const unsigned char *pattern, int test, const unsigned char **ep)
^
5 warnings generated.
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o path.o path.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o shf.o shf.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o syn.o syn.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o table.o table.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o trap.o trap.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o tree.o tree.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o tty.o tty.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o var.o var.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o version.o version.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o vi.o vi.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o portable/common/reallocarray.o portable/common/reallocarray.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -I/opt/org.OpenServer/share/libtool/include -I/opt/org.OpenServer/share/libressl/include -I/opt/org.OpenServer/share/libsodium/include -I/opt/org.OpenServer/share/libcurl/include -I/opt/org.OpenServer/share/libpcre/include -I/opt/org.OpenServer/share/libz/include -I/opt/org.OpenServer/share/libbz2/include -I/opt/org.OpenServer/share/liblzma/include -I/opt/org.OpenServer/share/libiconv/include -I/opt/org.OpenServer/share/libmilter/include -I/opt/org.OpenServer/port-53/include -I/opt/org.OpenServer/share/ldns/include -I/opt/org.OpenServer/share/geoip/include -I/opt/org.OpenServer/share/expat/include -I/opt/org.OpenServer/share/db/include -I/opt/org.OpenServer/share/jansson/include -I/usr/local/include -I/opt/org.OpenServer/port-514/include/eventlog -c -o portable/common/strtonum.o portable/common/strtonum.c
/opt/llvm/bin/clang -g -mmacosx-version-min=10.12 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -fstack-protector-all -fPIE -fPIC -O2 -Wformat -Wformat-security -Werror=format-security -Wall -fstack-protector-all -fPIC -pie -L/opt/org.OpenServer/share/libtool/lib -L/opt/org.OpenServer/share/libressl/lib -L/opt/org.OpenServer/share/libsodium/lib -L/opt/org.OpenServer/share/libcurl/lib -L/opt/org.OpenServer/share/libpcre/lib -L/opt/org.OpenServer/share/libz/lib -L/opt/org.OpenServer/share/libbz2/lib -L/opt/org.OpenServer/share/liblzma/lib -L/opt/org.OpenServer/share/libiconv/lib -L/opt/org.OpenServer/share/libmilter/lib -L/opt/org.OpenServer/port-53/lib -L/opt/org.OpenServer/share/ldns/lib -L/opt/org.OpenServer/share/geoip/lib -L/opt/org.OpenServer/share/expat/lib -L/opt/org.OpenServer/share/db/lib -L/opt/org.OpenServer/share/jansson/lib -L/usr/local/lib -L/opt/org.OpenServer/port-514/lib -o oksh alloc.o c_ksh.o c_sh.o c_test.o c_ulimit.o edit.o emacs.o eval.o exec.o expr.o history.o io.o jobs.o lex.o mail.o main.o mknod.o misc.o path.o shf.o syn.o table.o trap.o tree.o tty.o var.o version.o vi.o portable/common/reallocarray.o portable/common/strtonum.o
clang-4.0: warning: argument unused during compilation: '-pie' [-Wunused-command-line-argument]
akacase commented
#6 has another change set included in it that addresses all the issues mentioned here with clang.
hdatma commented
All clear except for the following. I do not know what is doing, so I won't touch it.
eval.c:322:19: warning: implicit conversion from 'int' to 'char' changes value from 192 to -64 [-Wconstant-conversion]
*dp++ = '@' + 0x80;
~ ~~~~^~~~~~
1 warning generated.
ibara commented
I'm going to update oksh soon (once OpenBSD 6.2 is cut). A lot of the clang warnings should be fixed then.
ibara commented
I updated all the code. Closing since that line in eval.c is gone now. Please open a new issue if there's new things.