sanity: Warn when using __OBJC__ in non-Objective-C/C++ source files
The define will never be defined (unless someone explicitly passes
-x to change the language the compiler uses, but we don't do that),
so using the define in C/C++ source files is most likely an error
and will result in dead code.
Change-Id: I1eb578b76b0294ce415fce67e6665388812ae651
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
| commit | f666e61f5cc8a55855591df926d64747a1d586fb |
| parent | a9592e2bdefd97be8544f9319fe85b56258d0d94 |
| author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> |
| committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> |
| commit time | Wed, 19 May 2021 16:11:06 +0000 |