From 896c81246e34b4e1661c76bcda02c3ed339c5544 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 15 Apr 2019 18:52:35 -0400 Subject: [PATCH] kernel/ipc: Resolve missing initializer warnings In C++ projects with higher warning levels, this header can cause some missing initializer warnings to leak over. This silences those from occurring. --- nx/include/switch/kernel/ipc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nx/include/switch/kernel/ipc.h b/nx/include/switch/kernel/ipc.h index 5ac4bb84..048c1d55 100644 --- a/nx/include/switch/kernel/ipc.h +++ b/nx/include/switch/kernel/ipc.h @@ -98,7 +98,7 @@ typedef struct { * @param cmd IPC command structure. */ static inline void ipcInitialize(IpcCommand* cmd) { - *cmd = (IpcCommand){0}; + *cmd = (IpcCommand){}; } /// IPC buffer descriptor.