Skip to content

Commit 0eacb32

Browse files
author
Davide Faconti
committed
Fix issue #8 and warning reported in #4
Fixed problem of visibility with TinyXML2
1 parent 2d8cf1a commit 0eacb32

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/xml_parsing.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,13 @@
1010
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1111
*/
1212

13+
#include <functional>
14+
15+
#pragma GCC diagnostic push
16+
#pragma GCC diagnostic ignored "-Wattributes"
1317
#include "behaviortree_cpp/xml_parsing.h"
1418
#include "tinyXML2/tinyxml2.h"
1519

16-
#include <functional>
17-
1820
namespace BT
1921
{
2022

@@ -31,7 +33,7 @@ struct XMLParser::Pimpl
3133

3234
Pimpl(const BehaviorTreeFactory &fact): factory(fact) {}
3335
};
34-
36+
#pragma GCC diagnostic pop
3537

3638
XMLParser::XMLParser(const BehaviorTreeFactory &factory) : _p( new Pimpl(factory) )
3739
{

0 commit comments

Comments
 (0)