mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 21:10:04 +00:00
Warning pragmas
This commit is contained in:
parent
d8b669262c
commit
cdd4ced28e
7 changed files with 63 additions and 2 deletions
|
|
@ -63,6 +63,12 @@ struct DirListSAXData
|
|||
std::vector<DirListRecord> records_;
|
||||
};
|
||||
|
||||
// Unspecified fields are initialized to zero, ignore warning
|
||||
#if defined(__GNUC__)
|
||||
# pragma GCC diagnostic push
|
||||
# pragma GCC diagnostic ignored "-Wmissing-field-initializers"
|
||||
#endif
|
||||
|
||||
static htmlSAXHandler saxHandler_ //
|
||||
{.startElement = &DirListSAXHandler::StartElement,
|
||||
.endElement = &DirListSAXHandler::EndElement,
|
||||
|
|
@ -71,6 +77,10 @@ static htmlSAXHandler saxHandler_ //
|
|||
.error = &DirListSAXHandler::Error,
|
||||
.fatalError = &DirListSAXHandler::Critical};
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
std::vector<DirListRecord> DirList(const std::string& baseUrl)
|
||||
{
|
||||
using namespace std::chrono;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue