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 picard.linux.it (picard.linux.it [213.254.12.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C7FCBC4332F for ; Mon, 21 Nov 2022 14:45:23 +0000 (UTC) Received: from picard.linux.it (localhost [IPv6:::1]) by picard.linux.it (Postfix) with ESMTP id E33693CCBB5 for ; Mon, 21 Nov 2022 15:45:21 +0100 (CET) Received: from in-4.smtp.seeweb.it (in-4.smtp.seeweb.it [217.194.8.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384)) (No client certificate requested) by picard.linux.it (Postfix) with ESMTPS id C2EBB3CCB9B for ; Mon, 21 Nov 2022 15:45:11 +0100 (CET) Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by in-4.smtp.seeweb.it (Postfix) with ESMTPS id E5E6B102C5B5 for ; Mon, 21 Nov 2022 15:45:10 +0100 (CET) Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out1.suse.de (Postfix) with ESMTP id 323CA220F2; Mon, 21 Nov 2022 14:45:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1669041910; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=VespTLuKgl7YLW7PdN+PczFVoRk+jhxBV8/t2PrU8XI=; b=RAAj4nDIoBTbRWAhUObjRpgCVaKNUICHOEfwrZJbKd0hZKijC3rgopHIspueeRLmqQfG4L PE7Nj1VylKzOKtjdOtBNocSjZtvBGEW5/IYRtdAbPdfxkXE+Eo9byotqA6m0zrmAF6Ig0Z h90yt4xCNGYy5fvaJl+0ZXyErOrNPVA= Received: from g78.cable.virginm.net (unknown [10.163.28.198]) by relay2.suse.de (Postfix) with ESMTP id E103E2C143; Mon, 21 Nov 2022 14:45:09 +0000 (UTC) To: ltp@lists.linux.it Date: Mon, 21 Nov 2022 14:45:05 +0000 Message-Id: <20221121144505.1496-1-rpalethorpe@suse.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-Virus-Scanned: clamav-milter 0.102.4 at in-4.smtp.seeweb.it X-Virus-Status: Clean Subject: [LTP] [PATCH] config: Explicitly set gnu99 X-BeenThere: ltp@lists.linux.it X-Mailman-Version: 2.1.29 Precedence: list List-Id: Linux Test Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Richard Palethorpe via ltp Reply-To: Richard Palethorpe Cc: Richard Palethorpe , Jan Kara Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ltp-bounces+ltp=archiver.kernel.org@lists.linux.it Sender: "ltp" Use the GNU variant of the C99 language to stop GCC 4.8.5 defaulting to C90. We can't use C99 because LTP is far from compliant. Signed-off-by: Richard Palethorpe Suggested-by: Jan Kara --- include/mk/config.mk.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/include/mk/config.mk.in b/include/mk/config.mk.in index 674843563..22301e126 100644 --- a/include/mk/config.mk.in +++ b/include/mk/config.mk.in @@ -80,8 +80,10 @@ OPT_CFLAGS ?= -O2 -fno-strict-aliasing -pipe WCFLAGS ?= -Wall -W @GCC_WARN_OLDSTYLE@ +STDCFLAGS ?= -std=gnu99 + LDFLAGS += $(WLDFLAGS) -CFLAGS += $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS) +CFLAGS += $(DEBUG_CFLAGS) $(OPT_CFLAGS) $(WCFLAGS) $(STDCFLAGS) LTP_CFLAGS_NOPIE := @LTP_CFLAGS_NOPIE@ -- 2.38.1 -- Mailing list info: https://lists.linux.it/listinfo/ltp