diff options
author | Tobias Markmann <tm@ayena.de> | 2016-06-10 12:38:40 (GMT) |
---|---|---|
committer | Tobias Markmann <tm@ayena.de> | 2016-06-10 13:11:04 (GMT) |
commit | f038599ba697acc17a328ef4ade5514fede8887e (patch) | |
tree | 1a7cb59f2490bbfd60fff2c92e147d93ea6d1166 /BuildTools/SCons/SConstruct | |
parent | 33ffcd9bf5bc9806d0b404aae2aaf6d67a2945db (diff) | |
download | swift-f038599ba697acc17a328ef4ade5514fede8887e.zip swift-f038599ba697acc17a328ef4ade5514fede8887e.tar.bz2 |
Fix remaining compiler warnings on OS X with clang
This changes HippoMocks include to -isystem include so it will
not cause compiler warnings.
This changes UserLocation floating point values to double and
remove remaining numerical casts.
Change C++11 compiler test to not cause warnings.
Test-Information:
Builds with allow_warnings=0 on OS X 10.11.5 with Xcode clang.
Change-Id: I26c60265a86c9be656089ade63fe9ad63851580f
Diffstat (limited to 'BuildTools/SCons/SConstruct')
-rw-r--r-- | BuildTools/SCons/SConstruct | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct index c5493fc..c3e64ee 100644 --- a/BuildTools/SCons/SConstruct +++ b/BuildTools/SCons/SConstruct @@ -87,9 +87,14 @@ int main(int, char **) { // lambda test auto someFunction = [](int i){ i = i * i; }; + someFunction(2); // nullptr test double* fooDouble = nullptr; + double bazDouble = 8.0; + fooDouble = &bazDouble; + bazDouble = *fooDouble; + return 0; } """, '.cpp') |