Xcode 12 changed its default compile flags to include -Werror,-Wimplicit-function-declaration One place this tends to cause problems is in configure scripts where that warning may have existed for a long time without anyone noticing. Now suddenly those compile tests will fail, causing other compile problems.
In the case of ike-scan, these two tests call exit() without #include <stdlib.h>. The easiest fix, though, is to just return directly from main() so that we don't have to use exit() at all.
Coverage remained the same at 77.033% when pulling c9ef0569443b03fda5339911acb8056a73c952de on mitchblank:xcode12-autoconf-fixes into 866edeae6dc11c8b45db4356f854fb6cbfe1d5ae on royhills:master.
Xcode 12 changed its default compile flags to include
-Werror,-Wimplicit-function-declaration
One place this tends to cause problems is in configure scripts where that warning may have existed for a long time without anyone noticing. Now suddenly those compile tests will fail, causing other compile problems.In the case of ike-scan, these two tests call
exit()
without#include <stdlib.h>
. The easiest fix, though, is to just return directly frommain()
so that we don't have to useexit()
at all.