From e1a9d27ca6ef5085ea191ed61dc60b19321b5ed5 Mon Sep 17 00:00:00 2001 From: James Turner Date: Wed, 21 Apr 2021 21:57:10 +0100 Subject: [PATCH] Generic protocols: suppress XML errors --- src/Network/generic.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/Network/generic.cxx b/src/Network/generic.cxx index 75dd80f6c..c4142ef3f 100644 --- a/src/Network/generic.cxx +++ b/src/Network/generic.cxx @@ -38,11 +38,12 @@ #include #include -#include
-#include
-#include
-#include
#include "generic.hxx" +#include
+#include
+#include
+#include
+#include
using simgear::strutils::unescape; @@ -763,6 +764,7 @@ FGGeneric::reinit() SGPropertyNode root; try { + flightgear::SentryXMLErrorSupression xs; readProperties(path, &root); } catch (const sg_exception & ex) { SG_LOG(SG_NETWORK, SG_ALERT,