Skip to content

Commit 38b8a81

Browse files
fix a few compiler warnings
1 parent 9654a0d commit 38b8a81

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

include/nbl/system/CColoredStdoutLoggerWin32.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,11 @@ class CColoredStdoutLoggerWin32 : public IThreadsafeLogger
5454
}
5555
case ELL_NONE:
5656
{
57-
assert(false); // how did this happen?? Btw, do we even need this log level?
58-
return 0;
57+
assert(false); // how did this happen?? Btw, do we even need this log level?
58+
break;
5959
}
6060
}
61+
return 0;
6162
}
6263
};
6364

src/nbl/asset/interchange/CGLTFLoader.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,8 +383,7 @@ class CGLTFLoader final : public IRenderpassIndependentPipelineLoader
383383

384384
if (!count.has_value())
385385
return false;
386-
else
387-
if (count.has_value() < 1)
386+
else if (count.value() < 1)
388387
return false;
389388

390389
if (!type.has_value())

0 commit comments

Comments
 (0)