From patchwork Sun Aug 16 10:29:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tremer X-Patchwork-Id: 3346 Return-Path: Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by web04.haj.ipfire.org (Postfix) with ESMTPS id 4BTtl56W0sz3x1D for ; Sun, 16 Aug 2020 10:31:45 +0000 (UTC) Received: from mail02.haj.ipfire.org (mail02.haj.ipfire.org [172.28.1.201]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail02.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail01.ipfire.org (Postfix) with ESMTPS id 4BTtjq1WJhzyw; Sun, 16 Aug 2020 10:30:39 +0000 (UTC) Received: from mail02.haj.ipfire.org (localhost [127.0.0.1]) by mail02.haj.ipfire.org (Postfix) with ESMTP id 4BTtjg4W8Qz30Wn; Sun, 16 Aug 2020 10:30:31 +0000 (UTC) Received: from mail01.ipfire.org (mail01.haj.ipfire.org [172.28.1.202]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) client-signature ECDSA (P-384)) (Client CN "mail01.haj.ipfire.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mail02.haj.ipfire.org (Postfix) with ESMTPS id 4BTtjc3DYRz30Xf for ; Sun, 16 Aug 2020 10:30:28 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (Client did not present a certificate) by mail01.ipfire.org (Postfix) with ESMTPSA id 4BTtjb3WFKzvZ; Sun, 16 Aug 2020 10:30:27 +0000 (UTC) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003ed25519; t=1597573827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YbOn9904q+n3zrl9drM42OQLxR9INiHjZ7HDQRBt2es=; b=SuGMKlXtwhTOEE6U/vSR4cIEdoeHTu1O29HuXdu1BDvjBklPEnlXMR9gNfbvmgEmv//k2W Ir+XuDzF0mVU8vDQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ipfire.org; s=202003rsa; t=1597573827; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=YbOn9904q+n3zrl9drM42OQLxR9INiHjZ7HDQRBt2es=; b=ZhoyMeKoQcLWYNCdSAPU73Kp070IIQCHF7l/mSVLluhlAHXFOoe0Q9wGdkbhHOFcQs87hv Yp88r8oq3pKCrXLQ7Uz4q7GgMKWDl7XAEMx+escAV3mZls5f85AXPDj1s/3YzOoDGRzhoD y6ftMU7zu8EmROCICjcW7gVM55G7s2K5JVh6ZVRZ57+/VxOMv/fpB3p7BW9Vd2cZbANFze zCbf9CojlFhBxfOKnZEofHCbANtYh5iZHby1ZvDwdWgwDgNHNAgxtkDYv/bykHeLu8SiHI /KsT8DZFhKCB3yZ1jmnfQS9oUOdEICH+5Hu8gfhzYtSrGRcgGQHpPj4YIZNWxQ== From: Michael Tremer To: development@lists.ipfire.org Subject: [PATCH 40/62] bacula: Fix build with GCC 10 Date: Sun, 16 Aug 2020 10:29:31 +0000 Message-Id: <20200816102953.3881-40-michael.tremer@ipfire.org> In-Reply-To: <20200816102953.3881-1-michael.tremer@ipfire.org> References: <20200816102953.3881-1-michael.tremer@ipfire.org> MIME-Version: 1.0 X-BeenThere: development@lists.ipfire.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: IPFire development talk List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Michael Tremer Errors-To: development-bounces@lists.ipfire.org Sender: "Development" GCC 10 aborts compilation when nunbers are (potentially) out of range when casted from one type to another: fstype.c: In function 'bool fstype(FF_PKT*, char*, int)': fstype.c:207:12: error: narrowing conversion of '4283649346' from 'unsigned int' to 'int' [-Wnarrowing] 207 | case 0xFF534D42: fstype = "cifs"; break; /* CIFS_MAGIC_NUMBER */ | ^~~~~~~~~~ fstype.c:216:12: error: narrowing conversion of '4187351113' from 'unsigned int' to 'int' [-Wnarrowing] 216 | case 0xf995e849: fstype = "hpfs"; break; /* HPFS_SUPER_MAGIC */ | ^~~~~~~~~~ fstype.c:217:12: error: narrowing conversion of '2508478710' from 'unsigned int' to 'int' [-Wnarrowing] 217 | case 0x958458f6: fstype = "hugetlbfs"; break; /* HUGETLBFS_MAGIC */ | ^~~~~~~~~~ fstype.c:234:12: error: narrowing conversion of '2768370933' from 'unsigned int' to 'int' [-Wnarrowing] 234 | case 0xa501FCF5: fstype = "vxfs"; break; | ^~~~~~~~~~ fstype.c:237:12: error: narrowing conversion of '2435016766' from 'unsigned int' to 'int' [-Wnarrowing] 237 | case 0x9123683e: fstype = "btrfs"; break; | ^~~~~~~~~~ Does nobody build this for 32 bit any more? Signed-off-by: Michael Tremer --- lfs/bacula | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lfs/bacula b/lfs/bacula index f5220bf16..3201688f4 100644 --- a/lfs/bacula +++ b/lfs/bacula @@ -36,6 +36,9 @@ PAK_VER = 6 DEPS = +# For GCC 10 +CFLAGS += -Wno-error=narrowing + ############################################################################### # Top-level Rules ###############################################################################