Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/cxong/tinydir.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCong <congusbongus@gmail.com>2014-04-28 07:24:54 +0400
committerCong <congusbongus@gmail.com>2014-04-28 07:24:54 +0400
commitaafd95b994d00d6c1f457a0d90eaac8e6826f2bf (patch)
treea4589cc98ec77a265128747bbe2d14d6a0043ae0 /samples
parent78645909834c6c61eb7cd72b48123e296bbe5b6c (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.txt4
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()
################################