Skip to content

Commit e728c92

Browse files
author
Kjell Ahlstedt
committed
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.
1 parent 1286153 commit e728c92

File tree

4 files changed

+9
-4
lines changed

4 files changed

+9
-4
lines changed

Makefile.am

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ h_root_sources_public = libxml++/libxml++.h \
3434
h_exceptions_sources_public = libxml++/exceptions/exception.h \
3535
libxml++/exceptions/parse_error.h \
3636
libxml++/exceptions/validity_error.h \
37-
libxml++/exceptions/internal_error.h
37+
libxml++/exceptions/internal_error.h \
38+
libxml++/exceptions/wrapped_exception.h
3839
h_io_sources_public = libxml++/io/istreamparserinputbuffer.h \
3940
libxml++/io/outputbuffer.h \
4041
libxml++/io/ostreamoutputbuffer.h \

libxml++/exceptions/wrapped_exception.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
namespace xmlpp
2626
{
2727

28+
#ifndef DOXYGEN_SHOULD_SKIP_THIS
2829
class wrapped_exception : public exception
2930
{
3031
public:
@@ -37,6 +38,7 @@ class wrapped_exception : public exception
3738
private:
3839
std::exception_ptr exception_ptr_;
3940
};
41+
#endif //DOXYGEN_SHOULD_SKIP_THIS
4042

4143
} // namespace xmlpp
4244

tests/saxparser_chunk_parsing_inconsistent_state/main.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class MySaxParser : public xmlpp::SaxParser
2929
{
3030
throw std::runtime_error("some custom runtime exception");
3131
}
32-
void on_error(const Glib::ustring& text) override
32+
void on_error(const Glib::ustring& /* text */) override
3333
{
3434
throw std::runtime_error("on_error() called");
3535
}

tests/saxparser_parse_double_free/main.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ void test_on_end_element()
159159
class OnEntityDeclarationTestParser : public xmlpp::SaxParser
160160
{
161161
protected:
162-
void on_entity_declaration(const Glib::ustring& name, xmlpp::XmlEntityType type, const Glib::ustring& publicId, const Glib::ustring& systemId, const Glib::ustring& content) override
162+
void on_entity_declaration(const Glib::ustring& name, xmlpp::XmlEntityType /* type */,
163+
const Glib::ustring& /* publicId */, const Glib::ustring& /* systemId */,
164+
const Glib::ustring& content) override
163165
{
164166
g_assert_cmpstr(name.c_str(), ==, "number");
165167
g_assert_cmpstr(content.c_str(), ==, "42");
@@ -187,7 +189,7 @@ void test_on_entity_declaration()
187189
class OnErrorTestParser : public xmlpp::SaxParser
188190
{
189191
protected:
190-
void on_error(const Glib::ustring& text) override
192+
void on_error(const Glib::ustring& /* text */) override
191193
{
192194
throw std::runtime_error("on_error runtime exception");
193195
}

0 commit comments

Comments
 (0)