clang-11 and below don’t enabled this by default (not Apple-clang)
My current CFLAGS for compiling wine are “-g -O2 -fPIC -Wall -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits”
Referring to the macOS specific issue from recently Xcode11 didn’t even show a warning nor did upstream clang-11.
On Fri, Apr 9, 2021 at 1:09 PM Gijs Vermeulen gijsvrm@gmail.com wrote:
I sent my previous email by accident, sorry about that.
Op vr 9 apr. 2021 om 18:52 schreef Zebediah Figura (she/her) < zfigura@codeweavers.com>:
Is there a compiler known that disables those warnings by default? gcc enables it as part of -Wall, so it should already be enabled.
IIRC I had to explicitly add -Wimplicit-function-declaration for Clang shipped by XCode 11.