Commit e728c92f authored by Kjell Ahlstedt's avatar Kjell Ahlstedt

Fix make check with --enable-warnings=fatal and fix make distcheck

* tests/saxparser_chunk_parsing_inconsistent_state/main.cc:
* tests/saxparser_parse_double_free/main.cc: Comment out names of unused
parameters in function definitions.
* Makefile.am: Add wrapped_exception.h to h_exceptions_sources_public or else
it won't be distributed.
* libxml++/exceptions/wrapped_exception.h: Add DOXYGEN_SHOULD_SKIP_THIS.
xmlpp::wrapped_exception is a private class that shall not be included in
the documentation. Bug #753570.
parent 12861530
......@@ -34,7 +34,8 @@ h_root_sources_public = libxml++/libxml++.h \
h_exceptions_sources_public = libxml++/exceptions/exception.h \
libxml++/exceptions/parse_error.h \
libxml++/exceptions/validity_error.h \
libxml++/exceptions/internal_error.h
libxml++/exceptions/internal_error.h \
libxml++/exceptions/wrapped_exception.h
h_io_sources_public = libxml++/io/istreamparserinputbuffer.h \
libxml++/io/outputbuffer.h \
libxml++/io/ostreamoutputbuffer.h \
......
......@@ -25,6 +25,7 @@
namespace xmlpp
{
#ifndef DOXYGEN_SHOULD_SKIP_THIS
class wrapped_exception : public exception
{
public:
......@@ -37,6 +38,7 @@ public:
private:
std::exception_ptr exception_ptr_;
};
#endif //DOXYGEN_SHOULD_SKIP_THIS
} // namespace xmlpp
......
......@@ -29,7 +29,7 @@ protected:
{
throw std::runtime_error("some custom runtime exception");
}
void on_error(const Glib::ustring& text) override
void on_error(const Glib::ustring& /* text */) override
{
throw std::runtime_error("on_error() called");
}
......
......@@ -159,7 +159,9 @@ void test_on_end_element()
class OnEntityDeclarationTestParser : public xmlpp::SaxParser
{
protected:
void on_entity_declaration(const Glib::ustring& name, xmlpp::XmlEntityType type, const Glib::ustring& publicId, const Glib::ustring& systemId, const Glib::ustring& content) override
void on_entity_declaration(const Glib::ustring& name, xmlpp::XmlEntityType /* type */,
const Glib::ustring& /* publicId */, const Glib::ustring& /* systemId */,
const Glib::ustring& content) override
{
g_assert_cmpstr(name.c_str(), ==, "number");
g_assert_cmpstr(content.c_str(), ==, "42");
......@@ -187,7 +189,7 @@ void test_on_entity_declaration()
class OnErrorTestParser : public xmlpp::SaxParser
{
protected:
void on_error(const Glib::ustring& text) override
void on_error(const Glib::ustring& /* text */) override
{
throw std::runtime_error("on_error runtime exception");
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment