summaryrefslogtreecommitdiff
path: root/sal/osl
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-11-02 13:03:32 +0100
committerStephan Bergmann <sbergman@redhat.com>2017-11-02 13:03:32 +0100
commit83c81ca9d80f3d997861ee7a0cfb8f7ce620a3bb (patch)
tree5a5c6a2230b601b05ebd370c41a673836fa20d8b /sal/osl
parent423df1fa929784c14e3a133c06468589fe9269cd (diff)
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
Diffstat (limited to 'sal/osl')
-rw-r--r--sal/osl/unx/file_error_transl.cxx3
1 files changed, 1 insertions, 2 deletions
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;
}