Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
330e3fc7
Commit
330e3fc7
authored
Oct 20, 2014
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on GCC 4.7.
parent
4692a669
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
2 deletions
+12
-2
node-translator.c++
c++/src/capnp/compiler/node-translator.c++
+5
-1
node-translator.h
c++/src/capnp/compiler/node-translator.h
+1
-1
schema.c++
c++/src/capnp/schema.c++
+6
-0
No files found.
c++/src/capnp/compiler/node-translator.c++
View file @
330e3fc7
...
...
@@ -1146,6 +1146,8 @@ NodeTranslator::BrandedDecl NodeTranslator::BrandScope::decompileType(
KJ_UNREACHABLE
;
}
}
KJ_UNREACHABLE
;
}
kj
::
Maybe
<
NodeTranslator
::
BrandedDecl
>
NodeTranslator
::
BrandScope
::
compileDeclExpression
(
...
...
@@ -1252,6 +1254,8 @@ kj::Maybe<NodeTranslator::BrandedDecl> NodeTranslator::BrandScope::compileDeclEx
}
}
}
KJ_UNREACHABLE
;
}
// =======================================================================================
...
...
@@ -1270,7 +1274,7 @@ NodeTranslator::NodeTranslator(
compileNode
(
decl
,
wipNode
.
get
());
}
NodeTranslator
::~
NodeTranslator
()
{}
NodeTranslator
::~
NodeTranslator
()
noexcept
(
false
)
{}
NodeTranslator
::
NodeSet
NodeTranslator
::
getBootstrapNode
()
{
auto
nodeReader
=
wipNode
.
getReader
();
...
...
c++/src/capnp/compiler/node-translator.h
View file @
330e3fc7
...
...
@@ -121,7 +121,7 @@ public:
// `displayName`, `id`, `scopeId`, and `nestedNodes` already initialized. The `NodeTranslator`
// fills in the rest.
~
NodeTranslator
();
~
NodeTranslator
()
noexcept
(
false
)
;
struct
NodeSet
{
schema
::
Node
::
Reader
node
;
...
...
c++/src/capnp/schema.c++
View file @
330e3fc7
...
...
@@ -692,6 +692,11 @@ ListSchema ListSchema::of(schema::Type::Which primitiveType) {
}
ListSchema
ListSchema
::
of
(
schema
::
Type
::
Reader
elementType
,
Schema
context
)
{
// This method is deprecated because it can only be implemented in terms of other deprecated
// methods. Temporarily disable warnings for those other deprecated methods.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
switch
(
elementType
.
which
())
{
case
schema
:
:
Type
::
VOID
:
case
schema
:
:
Type
::
BOOL
:
...
...
@@ -728,6 +733,7 @@ ListSchema ListSchema::of(schema::Type::Reader elementType, Schema context) {
// Unknown type is acceptable.
return
ListSchema
(
elementType
.
which
());
#pragma GCC diagnostic pop
}
StructSchema
ListSchema
::
getStructElementType
()
const
{
...
...
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