From 411f85f899f27ad4533548c57266879e791c4e1e Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Mon, 1 Apr 2019 15:22:39 +1100 Subject: [PATCH] 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 --- tools/spec.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/spec.py b/tools/spec.py index 3087a41..efdc423 100644 --- a/tools/spec.py +++ b/tools/spec.py @@ -1028,7 +1028,7 @@ def write_trace(dst: TextIO, q: List[Type], reg: Registry): } #undef FWD - #define FWD(NAME) if (!strcmp(#NAME,pName)) { return (PFN_vkVoidFunction)NAME; } + #define FWD(NAME) if (!strcmp(#NAME,pName)) { return reinterpret_cast (NAME); } MAP_INSTANCE_COMMANDS(FWD) #undef FWD std::clog << "Unhooked: " << pName << '\\n';