tools/spec: remove an instance of a C-style cast

C casting produces warnings under our preferred clang warnings. We know
what we're doing (more or less), so keep clang quiet
This commit is contained in:
Danny Robson 2019-04-01 15:22:39 +11:00
parent b09e0c6153
commit 411f85f899

View File

@ -1028,7 +1028,7 @@ def write_trace(dst: TextIO, q: List[Type], reg: Registry):
} }
#undef FWD #undef FWD
#define FWD(NAME) if (!strcmp(#NAME,pName)) { return (PFN_vkVoidFunction)NAME; } #define FWD(NAME) if (!strcmp(#NAME,pName)) { return reinterpret_cast<PFN_vkVoidFunction> (NAME); }
MAP_INSTANCE_COMMANDS(FWD) MAP_INSTANCE_COMMANDS(FWD)
#undef FWD #undef FWD
std::clog << "Unhooked: " << pName << '\\n'; std::clog << "Unhooked: " << pName << '\\n';