Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
flatbuffers
Project
Project
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
flatbuffers
Commits
cf47f271
Commit
cf47f271
authored
Feb 11, 2019
by
Wouter van Oortmerssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn on -Werror=unused-private-field for Clang.
Change-Id: Ibabc1456baf190eba191ebe0b81e3d73a4acc98f
parent
cc7f9b89
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletion
+2
-1
CMakeLists.txt
CMakeLists.txt
+1
-1
flatbuffers.h
include/flatbuffers/flatbuffers.h
+1
-0
No files found.
CMakeLists.txt
View file @
cf47f271
...
...
@@ -187,7 +187,7 @@ elseif(${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
"
${
CMAKE_CXX_FLAGS
}
-std=c++0x -Wall -pedantic -Werror -Wextra -Wno-unused-parameter"
)
set
(
FLATBUFFERS_PRIVATE_CXX_FLAGS
"-Wold-style-cast"
)
if
(
NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.8
)
list
(
APPEND FLATBUFFERS_PRIVATE_CXX_FLAGS
"-Wimplicit-fallthrough"
)
# enable warning
list
(
APPEND FLATBUFFERS_PRIVATE_CXX_FLAGS
"-Wimplicit-fallthrough"
"-Werror=unused-private-field"
)
# enable warning
endif
()
if
(
FLATBUFFERS_LIBCXX_WITH_CLANG
)
if
(
NOT
"
${
CMAKE_SYSTEM_NAME
}
"
MATCHES
"Linux"
)
...
...
include/flatbuffers/flatbuffers.h
View file @
cf47f271
...
...
@@ -2180,6 +2180,7 @@ class Verifier FLATBUFFERS_FINAL_CLASS {
return
(
size
>
size_
)
?
0
:
size
;
#else
// Must turn on FLATBUFFERS_TRACK_VERIFIER_BUFFER_SIZE for this to work.
(
void
)
upper_bound_
;
FLATBUFFERS_ASSERT
(
false
);
return
0
;
#endif
...
...
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