diff options
author | Cong <congusbongus@gmail.com> | 2014-04-28 07:24:54 +0400 |
---|---|---|
committer | Cong <congusbongus@gmail.com> | 2014-04-28 07:24:54 +0400 |
commit | aafd95b994d00d6c1f457a0d90eaac8e6826f2bf (patch) | |
tree | a4589cc98ec77a265128747bbe2d14d6a0043ae0 /samples | |
parent | 78645909834c6c61eb7cd72b48123e296bbe5b6c (diff) |
Merge clang/gcc compiler flags
Remove -freg-struct-return from both clang and
gcc (other) compiler flag definitions.
Flag is a GCC optimisation and not required.
Diffstat (limited to 'samples')
-rw-r--r-- | samples/CMakeLists.txt | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/samples/CMakeLists.txt b/samples/CMakeLists.txt index e123f37..01b38a1 100644 --- a/samples/CMakeLists.txt +++ b/samples/CMakeLists.txt @@ -10,10 +10,8 @@ INCLUDE_DIRECTORIES(..) if(MSVC) add_definitions(-W4 -WX) -elseif(APPLE) - add_definitions(-fsigned-char -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Winline -Werror) else() - add_definitions(-fsigned-char -freg-struct-return -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Winline -Werror) + add_definitions(-fsigned-char -Wall -W -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual -Winline -Werror) endif() ################################ |