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
db2de74c
Unverified
Commit
db2de74c
authored
May 21, 2021
by
Mariusz Wachowicz
Committed by
GitHub
May 21, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix pedantic compilation flag violation (#1156)
';' after method definition was removed. Also, pedantic flag is now uncommented in CMakeList.txt.
parent
a4bcd937
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
CMakeLists.txt
CMakeLists.txt
+2
-3
benchmark.cc
src/benchmark.cc
+2
-2
No files found.
CMakeLists.txt
View file @
db2de74c
...
@@ -167,9 +167,8 @@ else()
...
@@ -167,9 +167,8 @@ else()
# Disable warning when compiling tests as gtest does not use 'override'.
# Disable warning when compiling tests as gtest does not use 'override'.
add_cxx_compiler_flag
(
-Wsuggest-override
)
add_cxx_compiler_flag
(
-Wsuggest-override
)
endif
()
endif
()
# Disabled until googletest (gmock) stops emitting variadic macro warnings
add_cxx_compiler_flag
(
-pedantic
)
#add_cxx_compiler_flag(-pedantic)
add_cxx_compiler_flag
(
-pedantic-errors
)
#add_cxx_compiler_flag(-pedantic-errors)
add_cxx_compiler_flag
(
-Wshorten-64-to-32
)
add_cxx_compiler_flag
(
-Wshorten-64-to-32
)
add_cxx_compiler_flag
(
-fstrict-aliasing
)
add_cxx_compiler_flag
(
-fstrict-aliasing
)
# Disable warnings regarding deprecated parts of the library while building
# Disable warnings regarding deprecated parts of the library while building
...
...
src/benchmark.cc
View file @
db2de74c
...
@@ -308,7 +308,7 @@ void FlushStreams(BenchmarkReporter* reporter) {
...
@@ -308,7 +308,7 @@ void FlushStreams(BenchmarkReporter* reporter) {
if
(
!
reporter
)
return
;
if
(
!
reporter
)
return
;
std
::
flush
(
reporter
->
GetOutputStream
());
std
::
flush
(
reporter
->
GetOutputStream
());
std
::
flush
(
reporter
->
GetErrorStream
());
std
::
flush
(
reporter
->
GetErrorStream
());
}
;
}
// Reports in both display and file reporters.
// Reports in both display and file reporters.
void
Report
(
BenchmarkReporter
*
display_reporter
,
void
Report
(
BenchmarkReporter
*
display_reporter
,
...
@@ -333,7 +333,7 @@ void Report(BenchmarkReporter* display_reporter,
...
@@ -333,7 +333,7 @@ void Report(BenchmarkReporter* display_reporter,
FlushStreams
(
display_reporter
);
FlushStreams
(
display_reporter
);
FlushStreams
(
file_reporter
);
FlushStreams
(
file_reporter
);
}
;
}
void
RunBenchmarks
(
const
std
::
vector
<
BenchmarkInstance
>&
benchmarks
,
void
RunBenchmarks
(
const
std
::
vector
<
BenchmarkInstance
>&
benchmarks
,
BenchmarkReporter
*
display_reporter
,
BenchmarkReporter
*
display_reporter
,
...
...
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