From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E8132C35273 for ; Tue, 5 Apr 2022 21:40:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229537AbiDEVlF (ORCPT ); Tue, 5 Apr 2022 17:41:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1389254AbiDEPVM (ORCPT ); Tue, 5 Apr 2022 11:21:12 -0400 Received: from mail-ej1-x633.google.com (mail-ej1-x633.google.com [IPv6:2a00:1450:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F02D4CFBB0 for ; Tue, 5 Apr 2022 06:35:57 -0700 (PDT) Received: by mail-ej1-x633.google.com with SMTP id bh17so26763807ejb.8 for ; Tue, 05 Apr 2022 06:35:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=nvWOHtqdpvv3/fWcGl8540qT2+fBicJ2qyCHf3wqVBA=; b=jISt7P8cXbLPhePjFa+RoOCd0XGLw+jk6Q3+6bB8MtNxP4wElSWDaBge7MxG769uNC kI4lsQ0QZOLpOJ6aHbFSoEqLvspQnWsugEzGCKt3YE/3xHxyLlmxIj3pd1DKlItV9nA0 YLrusz/GbC1vZChg7E9WpbX+h/Ru/VxQ0L+3r6Y+fSn0j+Q978pPKs9fdJ0N+MVbc6po IvekorXLKSpBf9x++JkWn1lvgHNdIRE7BXqOIWulQpteHAV0neopBxQQBXtmoPFMhYQg lgy1vwf+CvODB9fFiQftMEsfb5zJdp20Dc9O7pvsOr4RVtVULtipLpzNfnHev/kj+uzM gtOA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=nvWOHtqdpvv3/fWcGl8540qT2+fBicJ2qyCHf3wqVBA=; b=MXbKbchbG/Paoet1Qe8wSiB+yo6CyqjlUOhAMXMNgQwAsFMvPQ+7+7o7k7qmLpsqeJ c6ijUbSlgxmNJizHwU1KncOp4Sii5qv9ENttBaKBsTG8acDhgjaLMRemM1floi/dkVzD mahaE1HcABGqscj3i0emIw/qm/gkeV2hwofFRgzOuqwXFXFDKa3+pJ7hpK6lrPNARfpo OpD+qzuiKFBk1WGYelyIIaoSk6pxPVCnuS76k9C0I66Q3bw8mAT6B7QZPV9pSKQ4AfYP Cnt4sguuGrSSI3yaOSwjeMTehZXqkEwBu2seGLCW2JuqCwOYptzUGnmGYp3RVJZ1ywy/ MjLw== X-Gm-Message-State: AOAM533QJEWKbgP4RtDo9wSQ7YLUIO41nmXvHPzE9wkCDhI5q8cKMDUe vOyIuDk1Ue6nbBP/YtbkYLmV92QWVXk= X-Google-Smtp-Source: ABdhPJyuZxBGzfEWIm+FKfVPcnSwFXhhYWWRCflcqD6jMdk2pofp0yUbvId0XdGiKiwyvBKCGfNUTA== X-Received: by 2002:a17:907:94cf:b0:6e4:a60b:bae5 with SMTP id dn15-20020a17090794cf00b006e4a60bbae5mr3610532ejc.476.1649165756450; Tue, 05 Apr 2022 06:35:56 -0700 (PDT) Received: from debianHome.localdomain (dynamic-077-008-134-094.77.8.pool.telefonica.de. [77.8.134.94]) by smtp.gmail.com with ESMTPSA id l25-20020a1709060e1900b006e7fe06664esm1620627eji.106.2022.04.05.06.35.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Apr 2022 06:35:56 -0700 (PDT) From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= To: selinux@vger.kernel.org Subject: [PATCH v2 5/6] libsemanage: ignore missing prototypes in swig generated code Date: Tue, 5 Apr 2022 15:35:47 +0200 Message-Id: <20220405133548.51598-5-cgzones@googlemail.com> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220405133548.51598-1-cgzones@googlemail.com> References: <20220331144752.31495-1-cgzones@googlemail.com> <20220405133548.51598-1-cgzones@googlemail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: selinux@vger.kernel.org The code generated by swig triggers the following warning: semanageswig_wrap.c:2759:24: warning: no previous prototype for ‘PyInit__semanage’ [-Wmissing-prototypes] 2759 | # define SWIG_init PyInit__semanage | ^~~~~~~~~~~~~~~~ semanageswig_wrap.c:17772:1: note: in expansion of macro ‘SWIG_init’ 17772 | SWIG_init(void) { | ^~~~~~~~~ Ignore -Wmissing-prototypes for swig generated source files. Signed-off-by: Christian Göttsche --- libsemanage/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsemanage/src/Makefile b/libsemanage/src/Makefile index ab6cae51..71c2a1d2 100644 --- a/libsemanage/src/Makefile +++ b/libsemanage/src/Makefile @@ -57,7 +57,7 @@ CFLAGS ?= -Werror -Wall -W -Wundef -Wshadow -Wmissing-noreturn -Wmissing-format- -fno-semantic-interposition SWIG_CFLAGS += -Wno-error -Wno-unused-but-set-variable -Wno-unused-variable -Wno-shadow \ - -Wno-unused-parameter + -Wno-unused-parameter -Wno-missing-prototypes override CFLAGS += -I../include -D_GNU_SOURCE RANLIB ?= ranlib -- 2.35.1