Silence compiler warning

Silence compiler warnings about methods with return value and potentially not returning anything.
This happens with gcc8 and the `-O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -std=c++11` flags passed to it by default on openSUSE.
This commit is contained in:
Michael Vetter
2018-11-29 17:07:20 +01:00
parent 0113a25296
commit a1d6da4624
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -608,6 +608,7 @@ HashFunction *HashFunction::getHashFunction(Function function)
return nullptr;
// No default for compiler warnings
}
return nullptr;
}
bool HashFunction::getConstant(const char *in, Function &out)