Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1861892ybt; Thu, 2 Jul 2020 16:13:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzxnCN4UJhMsYn352jcg+HIfnhCrW+DGkejlxKbme/3NppgDKqnYPCDz8+B0Yo8inTTi1J7 X-Received: by 2002:a17:906:1117:: with SMTP id h23mr27239206eja.396.1593731621854; Thu, 02 Jul 2020 16:13:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593731621; cv=none; d=google.com; s=arc-20160816; b=olXtcyNx9bLLVI+L+asG4Ry8U/ZR6bSGOlEDPrA2WIM9yD4z9uIfZAhJsmtvUvDVE+ IlRpcJRkzHeXW5GmBmCQ+sIltIF8CKLUcJIcbL0TcXV5EalDJvAdfCAwCeSJwXKiCE34 Lu1H4pnO+SPOlT55blaOHFOe/8gW1NVLM5Yc1LhmqbCtWSMxEJJYGbN+Bma/YoZ1RAjJ cGuBwyhgK/mYgGRaHgwKP+87FprBWou7OdCaqEV4BkpB/qVrqY4YM5kWuGFVP3AP0PAW k2u3sL9kM5ZEofbTrGgEq2NYr7V/h0G/tVlSehUOTVH7J55Yb4kPSZMuWMul+XoVG2CH qV5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PLDxotR4LWJLM1++xc/ZIF1iQIELRIcRP3vM3vOzBKE=; b=fXm7h8Be/jR5L61CPv1HHjNSF5jalzLX7moW0VBoWJQmfz/sPJlrxyzEGQBxN/f06M +8xENJL+MHGe+osuXbb/0uW3v+TTb4O7lG6JCalYflim9xWI6wtTP9c4E4mvHvEEAB0c lxu9EtjqTswtswI0F1ewTLrXU8MxUHqfWN1BGtzTKI6Wm9laBPdYKxln19WZP33aPDyT s6FquD6NFKVF1yhJmNl+aiBotWAHSB3UjQQt3ecVSUCQ0uMdj8pNho/3VkQsRPIjI99T Bmn7MC7nTFE0h0fbKV1IegCTP9sCbHtaMZNn5hpaPvGlvyX0fhBRmFAXsWV36XaHEHv7 4xAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Dv187/Ru"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g15si2913220edy.200.2020.07.02.16.13.19; Thu, 02 Jul 2020 16:13:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="Dv187/Ru"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726648AbgGBXLN (ORCPT + 99 others); Thu, 2 Jul 2020 19:11:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43402 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726639AbgGBXLJ (ORCPT ); Thu, 2 Jul 2020 19:11:09 -0400 Received: from mail-ed1-x544.google.com (mail-ed1-x544.google.com [IPv6:2a00:1450:4864:20::544]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6788EC08C5DD for ; Thu, 2 Jul 2020 16:11:09 -0700 (PDT) Received: by mail-ed1-x544.google.com with SMTP id e15so25780773edr.2 for ; Thu, 02 Jul 2020 16:11:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PLDxotR4LWJLM1++xc/ZIF1iQIELRIcRP3vM3vOzBKE=; b=Dv187/RuHleKkr5APMsWqrEflOj9aPbTlz4yGZosr2exGhwUm3q5nvpatWBlF+BQth nhIh1ixk1BPGuTCapo9uw1FFGkRoELKC8BgCkKU4Dfv0oWqPMFzFcZ6qIk1aVGJ/cd9I cJ4bUID8oQeQS8QR68/fOLU+1rBxpHrfFq3/Bs+WezCipQj8Ht6Z+B915EMljQpU0v53 lvEpkpjuCPlSiUlP+9MB1XCUx5jbF/n225eFiniuqYqMyTc5FGURKuFgT+qi0ae21eto erGZpMBy4gudtGkz5Glva5SFhr4gCNhYbyh0gF5XoBpiHIwtBeIMRZ/6wy8Ui86ILZOx hSMw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PLDxotR4LWJLM1++xc/ZIF1iQIELRIcRP3vM3vOzBKE=; b=XqLisP05eo4MBCijQgpWTQb6yD/WuNu7w2nYzy36LTt4YvouPQM3V6lT+vmqhTgp9u pxZ+8kWOaUyvV+H1kgy0+NwtCZkanT0Oyz5g/pkx/+7M3Tzo3qFGzLhc01KoQ3kHZLpG ZaJOEgnjCkslynbrMJz8VAIg+Iqb+g/wtSZal89AFkOjap7MoVuSg8fyJ3Q/e6bTgYrM OZMXC+1AZXmOS4lOH/GlU0+7YIOhQL7XvpCCk1rF2vkLDKegjZVgyMr6Yfvu5fiUs0ia DUfMvms4vysdbYa33j43WvLpGUgK6RUK80mZQPIqyJcRRfb4pVNfKAMZFZCwJnn1KKfQ o2/g== X-Gm-Message-State: AOAM5310nBoGG7R7PJz6HCuGBsfLP0KlzuQ0gUzRa/LpgwjZf33lU6kS SIHCK+8iQdORMjC00DlMh0cYjHCC X-Received: by 2002:a05:6402:202e:: with SMTP id ay14mr37355385edb.233.1593731467967; Thu, 02 Jul 2020 16:11:07 -0700 (PDT) Received: from localhost.localdomain ([2a02:a03f:b7f9:7600:bd38:c82d:5283:9f1]) by smtp.gmail.com with ESMTPSA id x9sm8214031ejw.28.2020.07.02.16.11.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Jul 2020 16:11:07 -0700 (PDT) From: Luc Van Oostenryck To: linux-kernel@vger.kernel.org Cc: Luc Van Oostenryck Subject: [PATCH 03/15] options: move on top the definition of warning type enums Date: Fri, 3 Jul 2020 01:10:27 +0200 Message-Id: <20200702231039.55015-4-luc.vanoostenryck@gmail.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20200702231039.55015-1-luc.vanoostenryck@gmail.com> References: <20200702231039.55015-1-luc.vanoostenryck@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This allows to reuse these enums in earlier helpers. Signed-off-by: Luc Van Oostenryck --- lib.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib.c b/lib.c index 5128a5b64e9e..43d55a0648ee 100644 --- a/lib.c +++ b/lib.c @@ -250,6 +250,12 @@ void die(const char *fmt, ...) static struct token *pre_buffer_begin = NULL; static struct token *pre_buffer_end = NULL; +enum warning_type { + WARNING_OFF, + WARNING_ON, + WARNING_FORCE_OFF +}; + int Waddress = 0; int Waddress_space = 1; int Wbitwise = 1; @@ -523,12 +529,6 @@ static int opt_##NAME(const char *arg, const char *opt, TYPE *ptr, int flag) \ OPT_NUMERIC(ullong, unsigned long long, strtoull) OPT_NUMERIC(uint, unsigned int, strtoul) -enum { - WARNING_OFF, - WARNING_ON, - WARNING_FORCE_OFF -}; - static char **handle_onoff_switch(char *arg, char **next, const struct flag warnings[]) { int flag = WARNING_ON; -- 2.27.0