_dbus_get_is_errno_eagain_or_ewouldblock: Avoid warning
authorDavid King <dking@redhat.com>
Fri, 12 Oct 2018 15:20:39 +0000 (16:20 +0100)
committerSimon McVittie <smcv@collabora.com>
Wed, 17 Apr 2019 12:38:05 +0000 (13:38 +0100)
commitc6c6b423cfd190f25f055ad78998b3055fff62e1
treec950bc716a0f865b3377786954090799e548f6a5
parent2fb62561f0304a0f550d828513c09818c804023a
_dbus_get_is_errno_eagain_or_ewouldblock: Avoid warning

EAGAIN and EWOULDBLOCK are documented to possibly be numerically equal,
for instance in errno(3), and a simple logical OR check will trigger the
-Wlogical-op warning of GCC. The GCC developers consider the warning to
work as-designed in this case:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69602

Avoid such a warning by explicitly checking if the values are identical.

Fixes: https://gitlab.freedesktop.org/dbus/dbus/issues/225
Signed-off-by: David King <dking@redhat.com>
Reviewed-by: Simon McVittie <smcv@collabora.com>
(cherry picked from commit a65319134209d39f5eb6e5425ec6a35fad05bcd7)
dbus/dbus-sysdeps-unix.c