原文地址:https://stackoverflow.com/questions/32626171/xcode-7-how-to-suppress-warning-overrides-a-member-function-but-is-not-marked/32627021
22
You need to turn off the -Winconsistent-missing-override
flag which automatically gets added with -Wall
on recent versions of clang. You can do this by passing the -Wno-inconsistent-missing-override
flag. See.
-
its not helping me m still facing same error, any suggestions what should i do? – Swati Oct 17 '16 at 11:01
-
Go into Xcode build settings in "Other C++ Flags" and add "-Wno-inconsistent-missing-override" – brant Jun 21 '17 at 20:05