mirror of
https://github.com/jbeder/yaml-cpp.git
synced 2025-09-09 04:41:16 +00:00
Revert "Fix compile warning with -Wshadow"
This reverts commit 1f5e971f77
.
See #1306; the previous commit caused an error with -Wpedantic:
yaml-cpp/include/yaml-cpp/emitterstyle.h:13:2: error: extra ‘;’ [-Wpedantic]
Since the original commit was to resolve warnings, reverting and the OP can produce a new one that fixes this issue.
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
namespace EmitterStyle {
|
struct EmitterStyle {
|
||||||
enum value { Default, Block, Flow };
|
enum value { Default, Block, Flow };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -8,7 +8,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace YAML {
|
namespace YAML {
|
||||||
namespace NodeType {
|
struct NodeType {
|
||||||
enum value { Undefined, Null, Scalar, Sequence, Map };
|
enum value { Undefined, Null, Scalar, Sequence, Map };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
#include <algorithm>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user