Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
yaml-cpp
Commits
4caedfda
Commit
4caedfda
authored
Mar 02, 2011
by
Jesse Beder
Browse files
Small changes to eliminate compiler warnings for 'nite' in issue 83
parent
2faeb76e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
1 deletion
+5
-1
src/node.cpp
src/node.cpp
+2
-1
src/scanner.cpp
src/scanner.cpp
+1
-0
src/tag.cpp
src/tag.cpp
+2
-0
No files found.
src/node.cpp
View file @
4caedfda
...
@@ -25,8 +25,9 @@ namespace YAML
...
@@ -25,8 +25,9 @@ namespace YAML
return
*
pNode1
<
*
pNode2
;
return
*
pNode1
<
*
pNode2
;
}
}
Node
::
Node
()
:
m_type
(
CT_NONE
),
m_pContent
(
0
),
m_alias
(
false
),
m_pIdentity
(
this
),
m_referenced
(
false
)
Node
::
Node
()
:
m_type
(
CT_NONE
),
m_pContent
(
0
),
m_alias
(
false
),
m_referenced
(
false
)
{
{
m_pIdentity
=
this
;
}
}
Node
::~
Node
()
Node
::~
Node
()
...
...
src/scanner.cpp
View file @
4caedfda
...
@@ -271,6 +271,7 @@ namespace YAML
...
@@ -271,6 +271,7 @@ namespace YAML
case
IndentMarker
::
NONE
:
assert
(
false
);
break
;
case
IndentMarker
::
NONE
:
assert
(
false
);
break
;
}
}
assert
(
false
);
assert
(
false
);
throw
std
::
runtime_error
(
"yaml-cpp: internal error, invalid indent type"
);
}
}
// PushIndentTo
// PushIndentTo
...
...
src/tag.cpp
View file @
4caedfda
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#include "directives.h"
#include "directives.h"
#include "token.h"
#include "token.h"
#include <cassert>
#include <cassert>
#include <stdexcept>
namespace
YAML
namespace
YAML
{
{
...
@@ -45,6 +46,7 @@ namespace YAML
...
@@ -45,6 +46,7 @@ namespace YAML
default:
default:
assert
(
false
);
assert
(
false
);
}
}
throw
std
::
runtime_error
(
"yaml-cpp: internal error, bad tag type"
);
}
}
}
}
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