mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-28 13:28:01 +03:00
Fix some -Weffc++ warnings (part 2)
This commit is contained in:
parent
c1f1b1174d
commit
963d150e93
28 changed files with 169 additions and 130 deletions
|
@ -1,6 +1,19 @@
|
|||
#pragma once
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push, 0)
|
||||
#include <pugixml.hpp>
|
||||
#pragma warning(pop)
|
||||
#else
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wall"
|
||||
#pragma GCC diagnostic ignored "-Wextra"
|
||||
#pragma GCC diagnostic ignored "-Wold-style-cast"
|
||||
#pragma GCC diagnostic ignored "-Weffc++"
|
||||
#include <pugixml.hpp>
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
|
||||
#include <memory>
|
||||
|
||||
struct rXmlNode
|
||||
|
@ -13,7 +26,7 @@ struct rXmlNode
|
|||
std::string GetAttribute( const std::string &name);
|
||||
std::string GetNodeContent();
|
||||
|
||||
pugi::xml_node handle;
|
||||
pugi::xml_node handle{};
|
||||
};
|
||||
|
||||
struct rXmlDocument
|
||||
|
@ -24,5 +37,5 @@ struct rXmlDocument
|
|||
void Read(const std::string& data);
|
||||
std::shared_ptr<rXmlNode> GetRoot();
|
||||
|
||||
pugi::xml_document handle;
|
||||
pugi::xml_document handle{};
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue