Browse Source

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

JINMEI Tatuya 11 years ago
parent
commit
da025438b6
1 changed files with 1 additions and 0 deletions
  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