From 7d393040505a0779e11a70f2513b9075689431b9 Mon Sep 17 00:00:00 2001 From: Christian Helmuth Date: Fri, 15 May 2015 12:16:55 +0200 Subject: [PATCH] rpi: fix response initialization in platform_drv GCC 4.9 legitimately whines that const members of responses must be initialized on construction. --- repos/os/src/drivers/platform/rpi/property_command.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/repos/os/src/drivers/platform/rpi/property_command.h b/repos/os/src/drivers/platform/rpi/property_command.h index efd7ddad8f..e4551b45f4 100644 --- a/repos/os/src/drivers/platform/rpi/property_command.h +++ b/repos/os/src/drivers/platform/rpi/property_command.h @@ -34,8 +34,8 @@ namespace Property_command { struct Response { - uint32_t const device_id; - uint32_t const state; + uint32_t const device_id = 0; + uint32_t const state = 0; }; }; @@ -57,8 +57,8 @@ namespace Property_command { struct Response { - uint32_t const device_id; - uint32_t const state; + uint32_t const device_id = 0; + uint32_t const state = 0; }; };