Fix GCC compiler warning about missing enum constant PlatformFile in switch

This commit is contained in:
Daniel Marjamäki 2017-08-12 00:17:55 +02:00
parent c11bcdfb40
commit fb37f3503a
1 changed files with 3 additions and 0 deletions

View File

@ -146,6 +146,9 @@ bool cppcheck::Platform::platform(cppcheck::Platform::PlatformType type)
long_bit = char_bit * sizeof_long; long_bit = char_bit * sizeof_long;
long_long_bit = char_bit * sizeof_long_long; long_long_bit = char_bit * sizeof_long_long;
return true; return true;
case PlatformFile:
// sizes are not set.
return false;
} }
// unsupported platform // unsupported platform
return false; return false;