From 05969998c1d8262f9137993cbb4c2d0418ccae9d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= Date: Mon, 7 Dec 2020 15:21:57 +0100 Subject: SELinuxMeter: silence comparison warning on 32-bit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit linux/SELinuxMeter.c: In function ‘hasSELinuxMount’: linux/SELinuxMeter.c:38:21: warning: comparison of integer expressions of different signedness: ‘__fsword_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare] 38 | if (sfbuf.f_type != SELINUX_MAGIC) { | ^~ Origin: https://github.com/SELinuxProject/selinux/blob/7df27b78e9eecbe65a57cdfefb9e51f547231b20/libselinux/src/init.c#L40 --- linux/SELinuxMeter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'linux/SELinuxMeter.c') diff --git a/linux/SELinuxMeter.c b/linux/SELinuxMeter.c index 64a3f2a7..892f1e82 100644 --- a/linux/SELinuxMeter.c +++ b/linux/SELinuxMeter.c @@ -35,7 +35,7 @@ static bool hasSELinuxMount(void) { return false; } - if (sfbuf.f_type != SELINUX_MAGIC) { + if ((uint32_t)sfbuf.f_type != (uint32_t)SELINUX_MAGIC) { return false; } -- cgit v1.2.3