From patchwork Fri Apr 24 15:12:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= X-Patchwork-Id: 11508079 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1365092C for ; Fri, 24 Apr 2020 15:12:46 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id EC90B2075A for ; Fri, 24 Apr 2020 15:12:45 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="KUBFGEih" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727781AbgDXPMp (ORCPT ); Fri, 24 Apr 2020 11:12:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49230 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1726849AbgDXPMo (ORCPT ); Fri, 24 Apr 2020 11:12:44 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 977E6C09B045 for ; Fri, 24 Apr 2020 08:12:43 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id g6so4750637pgs.9 for ; Fri, 24 Apr 2020 08:12:43 -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=V+qYI0xvGQsUgtH1FSRhdvvtYWSwfJVxZgXG2a6BvmI=; b=KUBFGEihPH6LnXia/Czr60FLtKgr9QjHpSRIV2y7zREJFVDljFyfRFlwSwf7q8wSzN j5hZ0hY57YrR17UGDlHwh+88d8PnBi4QxpyRqo4OvjHLDUaIvckf6vfzUEmSmpT5Ik5c oFzaK0gZ7X4gFnyzEM9sYxZUTFDEQDCGTjIomDdf8/Y9E+z2EajnAFxiY6Xz4iB/mo8O g8hBkQhyYemt+7OEsXLJBmPbbBHvg8CT5HKSuKHV4FYRw/mMCyBNTwWfNlMLfM/es9Nx P9iJ93/WfBX68/KF5khEFg2ff95lnMj2Dr+Z3SoqSO/YUzONkSH/KKHJhR2zUiDqcDQn FVXw== 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=V+qYI0xvGQsUgtH1FSRhdvvtYWSwfJVxZgXG2a6BvmI=; b=jxCL9tYjAGgttl1Ye1V2u07V0MX3+91YlSC3kPbxn/MhHUz9JWbnKgatvfhA0DBgbU szcpcpKeSjZTLxZuEliGViJOCe2osvpnhv1ppyKVSLteDuKwlrrQkKXVaZOHc9dSak+s MvEh0Nr0+7BwHVR4XWr0vJLlSF9SIbt687hkOcx/CNuD4y8jK9Y+MetpEsuoqgJRaXQx IQcC2F6TtlcygsijL4pdVpNwmMrCe/LR/kjIQTmNZiSVj4DXN/ylNdQyoKiU3VsClFoZ riiq5OahVzc6cnwOPN3glMsUP8hNhkoNxDLDJ52UHIMXFLlY5wzx4pLsrcZQjbBePVl5 kWdg== X-Gm-Message-State: AGi0PuZaJ+XqtVoOqckkYRPshvs7oCTfuWq05z3V24FB/nnsslIojocU gqM7uFnTxhG3Xa7T75GdtdQkwgrF X-Google-Smtp-Source: APiQypJG8kymck2OrAj7AjKjLIV89s0ciBS50N7YpE/zIWPAoN5P1c2aWtTsiYoQENgZ2VnEAAGmCQ== X-Received: by 2002:a62:1dd8:: with SMTP id d207mr10360261pfd.3.1587741162987; Fri, 24 Apr 2020 08:12:42 -0700 (PDT) Received: from localhost.localdomain ([2402:800:6374:f359:1ce8:a621:5f80:1116]) by smtp.gmail.com with ESMTPSA id f99sm5078429pjg.22.2020.04.24.08.12.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 24 Apr 2020 08:12:42 -0700 (PDT) From: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= To: git@vger.kernel.org Cc: =?utf-8?b?xJBvw6BuIFRy4bqnbiBDw7RuZyBEYW5o?= Subject: [PATCH v2 2/4] compat/regex: include alloca.h before undef it Date: Fri, 24 Apr 2020 22:12:31 +0700 Message-Id: <290ba923b5ee5bcaa4801454b6692deb532bd681.1587740959.git.congdanhqx@gmail.com> X-Mailer: git-send-email 2.26.2.384.g435bf60bd5 In-Reply-To: References: MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Somewhere later in the code, we indirectly include alloca.h which will define alloca again, thus create a warning about redefinition of a preprocessor. Include it prior to define alloca in order to not define it again. Signed-off-by: Đoàn Trần Công Danh --- compat/regex/regex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/compat/regex/regex.c b/compat/regex/regex.c index f3e03a9eab..4bef75a716 100644 --- a/compat/regex/regex.c +++ b/compat/regex/regex.c @@ -62,6 +62,7 @@ #include #ifdef GAWK +#include #undef alloca #define alloca alloca_is_bad_you_should_never_use_it #endif