Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile log of warnings, may serve some improvement. #22

Open
wawatok opened this issue Sep 23, 2018 · 0 comments
Open

compile log of warnings, may serve some improvement. #22

wawatok opened this issue Sep 23, 2018 · 0 comments

Comments

@wawatok
Copy link
Contributor

wawatok commented Sep 23, 2018

im leaving this list of warnings and few errors im getting when compiling the current source with gcc-4.6.4 aros toolchain for i386 abiv1. im able to work around it with just three bits of changes and most warnings are disabled anyway. it might serve some improvement though. also i think the binary when starting should check for NListViews.mcp, not .mcc, but it takes off anyway. Thx.

Compile failed: /home/wawa/aros-x86-464/bin/linux-i386/tools/crosstools/i386-aros-gcc -iquote /home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/ -iquote /home/wawa/AROS-source/AROS/local/simplemail -iquote . -m32 -march=i486 -O0 -Wall -Werror -Wno-pointer-sign -Wno-parentheses -g -Wno-strict-aliasing -Wno-implicit-function-declaration -Wno-unused-variable -Wno-error -Wno-unused-but-set-variable -Wno-uninitialized -Wno-format -DHAVE_OPENURL -DUSE_OPENSSL -D__USE_XOPEN2K8 -DSIMPLEMAIL_DATE="23.09.2018" -fno-ipa-cp -I/home/wawa/AROS-source/AROS/local/simplemail/indep-include -I/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui -I/home/wawa/AROS-source/AROS/local/simplemail -DAROS_BUILD_TYPE=AROS_BUILD_TYPE_PERSONAL -DADEBUG=1 -DMDEBUG=1 -D__SRCFILENAME__="local/simplemail/amiga-mui/socket-stubs.c" -c /home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c -o /home/wawa/aros-x86-464/bin/pc-i386/gen/local/simplemail/socket-stubs.o
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_bind':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:42:9: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:42:9: warning: passing argument 3 of '(int (*)(struct Library *, int, struct sockaddr *, socklen_t))((struct JumpVec *)__bn + 0xffffffffffffffe8u)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:42:9: note: expected 'struct sockaddr *' but argument is of type 'const void '
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_accept':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:52:9: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_connect':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:57:9: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:57:9: warning: passing argument 3 of '(int (
)(struct Library *, int, struct sockaddr *, socklen_t))((struct JumpVec *)__bn + 0xffffffffffffffdcu)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:57:9: note: expected 'struct sockaddr *' but argument is of type 'const void '
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_sendto':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:67:9: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_sendmsg':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:72:9: warning: 'struct msghdr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_recvfrom':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:82:9: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_recvmsg':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:87:9: warning: 'struct msghdr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_setsockopt':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:97:9: warning: passing argument 5 of '(int (
)(struct Library *, int, int, int, void *, socklen_t))((struct JumpVec *)__bn + 0xffffffffffffffc4u)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:97:9: note: expected 'void *' but argument is of type 'const void '
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_getsockname':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:107:9: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_getpeername':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:112:9: warning: 'struct sockaddr' declared inside parameter list [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_SetErrnoPtr':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:147:2: error: void value not ignored as it ought to be
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_getnetbyname':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:232:9: warning: passing argument 2 of '(struct netent * (
)(struct Library *, char *))((struct JumpVec *)__bn + 0xffffffffffffff6cu)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:232:9: note: expected 'char *' but argument is of type 'const UBYTE '
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_getservbyname':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:242:9: warning: passing argument 2 of '(struct servent * (
)(struct Library *, char *, char *))((struct JumpVec *)__bn + 0xffffffffffffff64u)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:242:9: note: expected 'char *' but argument is of type 'const UBYTE '
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:242:9: warning: passing argument 3 of '(struct servent * (
)(struct Library *, char *, char *))((struct JumpVec *)__bn + 0xffffffffffffff64u)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:242:9: note: expected 'char *' but argument is of type 'const UBYTE '
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_getservbyport':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:247:9: warning: passing argument 3 of '(struct servent * (
)(struct Library *, int, char *))((struct JumpVec *)__bn + 0xffffffffffffff60u)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:247:9: note: expected 'char *' but argument is of type 'const UBYTE '
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_getprotobyname':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:252:9: warning: passing argument 2 of '(struct protoent * (
)(struct Library *, char *))((struct JumpVec *)__bn + 0xffffffffffffff5cu)->vec' discards 'const' qualifier from pointer target type [enabled by default]
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:252:9: note: expected 'char *' but argument is of type 'const UBYTE *'
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c: In function 'stub_SetErrnoPtr':
/home/wawa/AROS-source/AROS/local/simplemail/amiga-mui/socket-stubs.c:148:1: warning: control reaches end of non-void function [-Wreturn-type]
mmakefile:507: recipe for target '/home/wawa/aros-x86-464/bin/pc-i386/gen/local/simplemail/socket-stubs.o' failed
make[1]: *** [/home/wawa/aros-x86-464/bin/pc-i386/gen/local/simplemail/socket-stubs.o] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant