Mac freeciv3/14/2023 So, this function name belongs inĪn example of configuration code which demonstrates this condition is: I also plan to file a bug upstream with FreeCiv developers, to see if they have a way to rewrite this configuration test so that it does not trigger a -Wimplicit-function-declaration warning from the compiler.Ħ4550 Add 'at_quick_exit' to directive. I do not know how many other macOS versions are affected. So, I think the immediate workaround for this problem is to add at_quick_exit to the list at. We maintain lists of functions that are known not to exist on each macOS version, so the warning can be suppressed. See email thread How to suppress -Wimplicit-function-declaration warning, if really does not have the declaration?, started Wed Jan 26 07:43. Thus the function definition would not be implicit if the stdlib supported the at_quick_exit C11 language feature. Note that this code does contain #include. Wno-tautological-compare -L/opt/local/lib -Wl,-headerpad_max_install_names -Wl,-syslibroot,/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdkĬonftest.c:99:2: error: implicit declaration of function 'at_quick_exit' is invalid in C99 I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -Werror -Wall -Wpointer-arith -Wcast-align In the config.log, the relevant configuration output is (with line breaks added for legibility):Ĭonfigure:25690: checking for C11 at_quick_exit()Ĭonfigure:25713: /usr/bin/clang -o conftest -pipe -Os -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk -arch x86_64 Strcmp: found in freeciv-2.6.6/config.logĪt_quick_exit: found in freeciv-2.6.6/config.log Warning: Configuration logfiles contain indications of -Wimplicit-function-declaration check that features were not accidentally disabled: > Verifying checksums for freeciv-common > Computing dependencies for freeciv-common This is the initial warning from MacPorts: My "Apple clang version 11.0.0 (clang-1100.0.33.12)" compiler apparently lacks that feature of the C11 standard library. The configuration code which the port uses does explicitly include to declare the function. When building freeciv (work in progress, a major rewrite, see #62984), MacPorts prints a warning, "indications of -Wimplicit-function-declaration", regarding function named at_quick_exit.
0 Comments
Leave a Reply.AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |