Author: rleigh
Date: Wed Jun 14 20:53:15 2017
New Revision: 1798753

URL: http://svn.apache.org/viewvc?rev=1798753&view=rev
Log:
tests: XSValueTest: Don't warn about integer limit problems

Modified:
    xerces/c/trunk/tests/src/XSValueTest/XSValueTest.cpp

Modified: xerces/c/trunk/tests/src/XSValueTest/XSValueTest.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/tests/src/XSValueTest/XSValueTest.cpp?rev=1798753&r1=1798752&r2=1798753&view=diff
==============================================================================
--- xerces/c/trunk/tests/src/XSValueTest/XSValueTest.cpp (original)
+++ xerces/c/trunk/tests/src/XSValueTest/XSValueTest.cpp Wed Jun 14 20:53:15 
2017
@@ -56,6 +56,14 @@ static const bool  EXP_RET_CANREP_FALSE
 static const XSValue::Status DONT_CARE = XSValue::st_UnknownType;
 static bool  errSeen = false;
 
+// This code is deliberately exeeding the minimum and maxium limits of
+// the various integer types.  Don't warn about it since it's
+// expected.
+#ifdef __GNUC__
+#  pragma GCC diagnostic push
+#  pragma GCC diagnostic ignored "-Wc++11-compat"
+#endif
+
 static const XMLCh* getDataTypeString(const XSValue::DataType dt)
 {
     switch(dt)
@@ -6764,3 +6772,7 @@ int main()
 
     return 0;
 }
+
+#ifdef __GNUC__
+#  pragma GCC diagnostic pop
+#endif



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to