From 21940046626e961f6e151daa93827161ef9ea5cd Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Fri, 8 Oct 2021 18:23:05 +1000 Subject: [PATCH] CDImageDevice: Fix gcc warning --- src/common/cd_image_device.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/common/cd_image_device.cpp b/src/common/cd_image_device.cpp index 8bd832dc7..2b31945f4 100644 --- a/src/common/cd_image_device.cpp +++ b/src/common/cd_image_device.cpp @@ -9,11 +9,8 @@ #include Log_SetChannel(CDImageDevice); -enum : u32 -{ - MAX_TRACK_NUMBER = 99, - ALL_SUBCODE_SIZE = 96, -}; +static constexpr u32 MAX_TRACK_NUMBER = 99; +static constexpr int ALL_SUBCODE_SIZE = 96; static u32 BEToU32(const u8* val) {