From 83c81ca9d80f3d997861ee7a0cfb8f7ce620a3bb Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Thu, 2 Nov 2017 13:03:32 +0100 Subject: Avoid warning thrash ...between "error: unannotated fall-through between switch labels [-Werror,-Wimplicit-fallthrough]" (in some builds, for the original code) and "error: fallthrough annotation in unreachable code [-Werror,-Wimplicit-fallthrough]" (in other builds, after adding SAL_FALLTHROUGH). Change-Id: I75bbefd69c81f43f22117f8ad110237de24e18af --- sal/osl/unx/file_error_transl.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sal') diff --git a/sal/osl/unx/file_error_transl.cxx b/sal/osl/unx/file_error_transl.cxx index 10812a8245ae..54b19ce10a9f 100644 --- a/sal/osl/unx/file_error_transl.cxx +++ b/sal/osl/unx/file_error_transl.cxx @@ -164,9 +164,8 @@ oslFileError oslTranslateFileError(int Errno) case ETIMEDOUT: return osl_File_E_TIMEDOUT; - case 0: - assert(false); default: + assert(Errno != 0); /* FIXME translateFileError: is this alright? Or add a new one: osl_File_E_Unknown? */ return osl_File_E_invalidError; } -- cgit