Files
cappuccino/Foundation
Martin CarlbergandGitHub 1c866931f3 New: The compiler will now create warnings for variables that are never read (#2871)
This new warning adds a lot of warnings in the Cappuccino frameworks. I have turned off
the warning in the Jakefiles when compiling most of the Cappuccino frameworks. But it is
on as default for any user projects.

So there is also a new feature to turn off/on warnings as a compiler flag.

These flags are (all flags are on as default):
-Wunused-but-set-variable                    Warning when a local variable is never read.
-Wshadow-ivar                                Warning when a local variable is shadowing an instance variable for the class.
-Wcreate-global-inside-function-or-method    Warning when creating a global variable inside a function or method.
-Wunknown-class-or-global                    Warning when a class or global variable is not known.
-Wunknown-ivar-type                          Warning when the type for an instance variable is not known.

To turn off a flag add a 'no-' prefix. Example: -Wno-unused-but-set-variable

For an example how to use it in a Jakefile please look at the Jakefiles in this commit.
2020-02-21 14:29:48 +01:00
..
2016-02-06 20:39:49 +01:00
2016-10-20 08:48:01 +02:00
2012-05-13 14:26:19 +01:00
2016-11-02 16:45:01 +01:00
2015-04-22 11:22:44 -07:00
2010-12-26 01:34:37 +02:00
2014-11-25 17:58:17 -05:00
2010-12-26 01:34:37 +02:00
2011-05-04 19:07:06 +02:00
2010-12-26 01:34:37 +02:00
2010-12-26 01:34:37 +02:00
2013-07-26 02:08:14 -04:00
2015-04-22 11:22:44 -07:00
2010-12-16 19:16:33 +02:00
2008-09-04 03:52:20 -07:00