I have fixed a few CFLAGS="-pedantic" issues in dhcpcd and it works for 2.0.0/1/2/3.
Created attachment 82426 [details, diff] dhcpcd-2.0-pedantic-rc1.patch
Created attachment 82427 [details] dhcpcd-2.0.0-r1.ebuild
Created attachment 82428 [details] dhcpcd-2.0.1-r1.ebuild
Created attachment 82429 [details] dhcpcd-2.0.2-r1.ebuild
Created attachment 82430 [details] dhcpcd-2.0.3-r1.ebuild
Created attachment 82431 [details] ChangeLog
Patch accepted into upstream svn repo - will be in dhcpcd-2.0.4
accepting bug
Hello there, I have been doing the -pedantic patches for packages as a way of learning c/c++, I am trying to get a hang of the language and only started learning it a week ago from reading the code in existing packages. If anyone can help remove the other -pedantic warnings: dhcpconfig.c: In function
Hello there, I have been doing the -pedantic patches for packages as a way of learning c/c++, I am trying to get a hang of the language and only started learning it a week ago from reading the code in existing packages. If anyone can help remove the other -pedantic warnings: dhcpconfig.c: In function dhcpConfig: dhcpconfig.c:723: warning: pointer targets in passing argument 1 of cleanmetas differ in signedness client.c: In function dhcpStart: client.c:973: warning: ISO C forbids return between function pointer and void * client.c: In function dhcpReboot: client.c:996: warning: ISO C forbids return between function pointer and void * client.c:1022: warning: ISO C forbids return between function pointer and void * client.c: In function dhcpRequest: client.c:1086: warning: ISO C forbids return between function pointer and void * client.c:1125: warning: ISO C forbids return between function pointer and void * client.c: In function dhcpBound: client.c:1134: warning: ISO C forbids return between function pointer and void * client.c:1139: warning: ISO C forbids return between function pointer and void * client.c:1165: warning: ISO C forbids return between function pointer and void * client.c: In function dhcpRenew: client.c:1181: warning: ISO C forbids return between function pointer and void * client.c:1186: warning: ISO C forbids return between function pointer and void * client.c:1198: warning: ISO C forbids return between function pointer and void * client.c:1206: warning: ISO C forbids return between function pointer and void * client.c: In function dhcpRebind: client.c:1212: warning: ISO C forbids return between function pointer and void * client.c:1217: warning: ISO C forbids return between function pointer and void * client.c:1225: warning: ISO C forbids return between function pointer and void * client.c:1238: warning: ISO C forbids return between function pointer and void * client.c: In function dhcpRelease: client.c:1245: warning: ISO C forbids return between function pointer and void * client.c:1279: warning: ISO C forbids return between function pointer and void * client.c: In function dhcpStop: client.c:1316: warning: ISO C forbids return between function pointer and void * dhcpcd.c:455: warning: ISO C forbids conversion of object pointer to function pointer type dhcpcd.c:484: warning: ISO C forbids conversion of object pointer to function pointer type Or knows how to make a loop vectorizable: client.c:135: note: vectorized 0 loops in function. client.c:1173: note: vectorized 0 loops in function. client.c:891: note: vectorized 0 loops in function. client.c:554: note: vectorized 0 loops in function. client.c:200: note: vectorized 0 loops in function. client.c:809: note: vectorized 0 loops in function. dhcpconfig.c:98: note: vectorized 0 loops in function. dhcpconfig.c:158: note: vectorized 0 loops in function. dhcpcd.c:150: note: vectorized 0 loops in function. I would appreciate the knowledge and update this patch!
I'm afraid that C/C++ is not my strongest language and cannot be of much help with those warnings :(
2.0.4 is out