]> git.xonotic.org Git - xonotic/netradiant.git/blobdiff - libs/xml/xmltextags.cpp
gcc: appease the hardening warnings
[xonotic/netradiant.git] / libs / xml / xmltextags.cpp
index 00f57a057ac2337eec22fa81e6e8bd247793fbf3..235029c0c7394fd2461207b379617d56fd6d59c4 100644 (file)
@@ -22,6 +22,7 @@
 #include "xmltextags.h"
 
 #include <string>
+#include <cassert>
 
 #include "qerplugin.h"
 #include "stream/stringstream.h"
@@ -155,6 +156,10 @@ bool XmlTagBuilder::AddShaderNode( const char* shader, TextureType textureType,
                        break;
                case TEXTURE:
                        newnode = xmlNewNode( NULL, (xmlChar*)"texture" );
+                       break;
+               default:
+                       assert(false);
+                       break;
                };
 
                newnode = xmlDocCopyNode( newnode, doc, 1 );