Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
151ead62
Unverified
Commit
151ead62
authored
Jun 07, 2018
by
Dominic Hamon
Committed by
GitHub
Jun 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Disable deprecation warnings when -Werror is enabled. (#609)
Fixes #608
parent
505be96a
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
CMakeLists.txt
CMakeLists.txt
+4
-0
benchmark.h
include/benchmark/benchmark.h
+1
-1
No files found.
CMakeLists.txt
View file @
151ead62
...
@@ -143,6 +143,10 @@ else()
...
@@ -143,6 +143,10 @@ else()
# Disable warnings regarding deprecated parts of the library while building
# Disable warnings regarding deprecated parts of the library while building
# and testing those parts of the library.
# and testing those parts of the library.
add_cxx_compiler_flag
(
-Wno-deprecated-declarations
)
add_cxx_compiler_flag
(
-Wno-deprecated-declarations
)
# Disable deprecation warnings for release builds (when -Werror is enabled).
add_cxx_compiler_flag
(
-Wno-deprecated RELEASE
)
add_cxx_compiler_flag
(
-Wno-deprecated RELWITHDEBINFO
)
add_cxx_compiler_flag
(
-Wno-deprecated MINSIZEREL
)
if
(
NOT BENCHMARK_ENABLE_EXCEPTIONS
)
if
(
NOT BENCHMARK_ENABLE_EXCEPTIONS
)
add_cxx_compiler_flag
(
-fno-exceptions
)
add_cxx_compiler_flag
(
-fno-exceptions
)
endif
()
endif
()
...
...
include/benchmark/benchmark.h
View file @
151ead62
...
@@ -226,7 +226,7 @@ BENCHMARK(BM_test)->Unit(benchmark::kMillisecond);
...
@@ -226,7 +226,7 @@ BENCHMARK(BM_test)->Unit(benchmark::kMillisecond);
#define BENCHMARK_INTERNAL_TOSTRING2(x) #x
#define BENCHMARK_INTERNAL_TOSTRING2(x) #x
#define BENCHMARK_INTERNAL_TOSTRING(x) BENCHMARK_INTERNAL_TOSTRING2(x)
#define BENCHMARK_INTERNAL_TOSTRING(x) BENCHMARK_INTERNAL_TOSTRING2(x)
#if defined(__GNUC__)
#if defined(__GNUC__)
|| defined(__clang__)
#define BENCHMARK_BUILTIN_EXPECT(x, y) __builtin_expect(x, y)
#define BENCHMARK_BUILTIN_EXPECT(x, y) __builtin_expect(x, y)
#define BENCHMARK_DEPRECATED_MSG(msg) __attribute__((deprecated(msg)))
#define BENCHMARK_DEPRECATED_MSG(msg) __attribute__((deprecated(msg)))
#else
#else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment