Browse Source

Tell gcc about the fallthroughs (needed because of -Werror in makefiles)

Vytautas Mickus 6 years ago
parent
commit
95ea2c21a9
1 changed files with 3 additions and 0 deletions
  1. 3 0
      external/tinyxml2/tinyxml2.cpp

+ 3 - 0
external/tinyxml2/tinyxml2.cpp

@@ -409,14 +409,17 @@ void XMLUtil::ConvertUTF32ToUTF8( unsigned long input, char* output, int* length
             --output;
             *output = (char)((input | BYTE_MARK) & BYTE_MASK);
             input >>= 6;
+            /* fallthrough */
         case 3:
             --output;
             *output = (char)((input | BYTE_MARK) & BYTE_MASK);
             input >>= 6;
+            /* fallthrough */
         case 2:
             --output;
             *output = (char)((input | BYTE_MARK) & BYTE_MASK);
             input >>= 6;
+            /* fallthrough */
         case 1:
             --output;
             *output = (char)(input | FIRST_BYTE_MARK[*length]);