From fb37f3503a3407eb214bbd3fe18f801eb50bc449 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 12 Aug 2017 00:17:55 +0200 Subject: [PATCH] Fix GCC compiler warning about missing enum constant PlatformFile in switch --- lib/platform.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/platform.cpp b/lib/platform.cpp index 3a617ce57..e0b5e46c5 100644 --- a/lib/platform.cpp +++ b/lib/platform.cpp @@ -146,6 +146,9 @@ bool cppcheck::Platform::platform(cppcheck::Platform::PlatformType type) long_bit = char_bit * sizeof_long; long_long_bit = char_bit * sizeof_long_long; return true; + case PlatformFile: + // sizes are not set. + return false; } // unsupported platform return false;