Skip to content
Snippets Groups Projects
Commit 8005e39f authored by Emmanuel Milou's avatar Emmanuel Milou
Browse files

warnings treated as errors, fix warnings in src/config

parent b59be7a9
No related branches found
No related tags found
No related merge requests found
......@@ -89,7 +89,7 @@ dnl Define C++ as default language
AC_LANG(C++)
dnl Setup C++ compiler flags
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -O0 -g -Wall -Weffc++ -Wfatal-errors"
CXXFLAGS="$CXXFLAGS $USE_EXCEPTIONS $USER_INCLUDES -O0 -g -Wall -Weffc++ -Wfatal-errors -Werror"
dnl Check for header files
AC_FUNC_ALLOCA
......
......@@ -25,7 +25,7 @@
namespace Conf {
// ctor
ConfigTree::ConfigTree()
ConfigTree::ConfigTree():_sections()
{
}
......
......@@ -73,7 +73,10 @@ namespace Conf {
private:
friend class ConfigTree;
ConfigTreeIterator(ConfigTree *configTree) : _tree(configTree) {}
ConfigTreeIterator(ConfigTree *configTree) : _tree(configTree), _endToken(), _iter(), _iterItem() {}
ConfigTreeIterator(const Conf::ConfigTreeIterator&);
ConfigTreeIterator& operator=(const Conf::ConfigTreeIterator&);
ConfigTree* _tree;
TokenList _endToken;
......@@ -151,7 +154,7 @@ namespace Conf {
class ConfigTreeItem {
public:
ConfigTreeItem() : _defaultValue(""), _type("string") {}
ConfigTreeItem() : _name(""), _value(""), _defaultValue(""), _type("string") {}
// defaultvalue = value
ConfigTreeItem(const std::string& name, const std::string& value, const std::string& type) :
_name(name), _value(value),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment