message: fix Klockwork issues
diff: @@ -38,8 +38,8 @@ namespace ospray {
  size_t numBricksWritten = 0;
  std::mutex fileMutex;
  - FILE *infoOut;
  - FILE *dataOut;
  + FILE *infoOut = nullptr;
  + FILE *dataOut = nullptr;
  size_t numWritten = 0;
  size_t numRemoved = 0;
  @@ -208,9 +208,12 @@ namespace ospray {
  throw std::runtime_error("unknown input voxel format");
  infoOut = fopen((outFileBase + ".info").c_str(), "wb");
  - assert(infoOut);
  + if (!infoOut)
  + throw std::runtime_error("could not open info output file!");
  +
  dataOut = fopen((outFileBase + ".data").c_str(), "wb");
  - assert(dataOut);
  + if (!dataOut)
  + throw std::runtime_error("could not open data output file!");
  ofstream osp(outFileBase + ".osp");
  osp << "<?xml?>" << endl;
  @@ -234,9 +237,6 @@ namespace ospray {
  osp << " />" << endl;
  osp << "</ospray>" << endl;
  - assert(infoOut);
  - assert(dataOut);
  -
  makeAMR(in, numLevels, BS, RF, threshold);
  fclose(infoOut);
  