From c255cedd7aca8bb839bc291215ac78201d11c928 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 3 Aug 2019 17:06:24 +0200 Subject: [PATCH] IPCCompiler: Make decode_message() return nullptr for unknown messages --- DevTools/IPCCompiler/main.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DevTools/IPCCompiler/main.cpp b/DevTools/IPCCompiler/main.cpp index f5b6931975c..04cf175b62e 100644 --- a/DevTools/IPCCompiler/main.cpp +++ b/DevTools/IPCCompiler/main.cpp @@ -318,6 +318,8 @@ int main(int argc, char** argv) if (message.is_synchronous) do_decode_message(message.response_name()); } + dbg() << " default:"; + dbg() << " return nullptr;"; dbg() << " }"; dbg() << " }";