From b8a736d7a0e8ee00bdd026bb4c68c50bbe49d2ef Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Mar 2019 09:26:50 +0100 Subject: [PATCH] =?utf8?q?sd-bus:=20change=20"int"=20=E2=86=92=20"signed?= =?utf8?q?=20int"=20on=20bitfield?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Apparently by the C standard "int" bitfields can have any signedness (unlike non-bitfield declarations which are "signed" if the signedness is not specified). Let's fix the LGTM warning about this hence and be explicit that we mean "signed" here. --- src/libsystemd/sd-bus/bus-internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsystemd/sd-bus/bus-internal.h b/src/libsystemd/sd-bus/bus-internal.h index 5d6cce0..d7fcb93 100644 --- a/src/libsystemd/sd-bus/bus-internal.h +++ b/src/libsystemd/sd-bus/bus-internal.h @@ -211,7 +211,7 @@ struct sd_bus { bool connected_signal:1; bool close_on_exit:1; - int use_memfd:2; + signed int use_memfd:2; void *rbuffer; size_t rbuffer_size; -- 2.7.4