Parcourir la source

[3213] add a never-reachable return to silence some compilers

JINMEI Tatuya il y a 11 ans
Parent
commit
da025438b6
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/lib/cc/data.cc

+ 1 - 0
src/lib/cc/data.cc

@@ -309,6 +309,7 @@ skipTo(std::istream& in, const std::string& file, int& line,
         }
     }
     throwJSONError(std::string("EOF read, one of \"") + chars + "\" expected", file, line, pos);
+    return (c); // shouldn't reach here, but some compilers require it
 }
 
 // TODO: Should we check for all other official escapes here (and