Selaa lähdekoodia

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

Vytautas Mickus 8 vuotta sitten
vanhempi
commit
95ea2c21a9
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  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]);