Received: from eggs.gnu.org ([2001:4830:134:3::10]:56475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1foAwP-00074o-6b for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1foAwO-0007kO-5w for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:09 -0400 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:54902) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1foAwO-0007jL-0f for qemu-devel@nongnu.org; Fri, 10 Aug 2018 13:11:08 -0400 Received: by mail-wm0-x243.google.com with SMTP id c14-v6so2634992wmb.4 for ; Fri, 10 Aug 2018 10:11:07 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Fri, 10 Aug 2018 18:11:01 +0100 Message-Id: <20180810171102.16451-4-alex.bennee@linaro.org> In-Reply-To: <20180810171102.16451-1-alex.bennee@linaro.org> References: <20180810171102.16451-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC PATCH 3/3] .travis.yml: ensure we support C99 on old compilers List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Alex=20Benn=C3=A9e?= , Fam Zheng , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= The default Travis gcc is so old it default to -std=gnu89 which will fall over on some c99ism you are allowed to use in the QEMU source tree. As we also use some GNU extensions make it -std=gnu99 instead of -std=c99. Signed-off-by: Alex Bennée --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 95be6ec59f..9c61750be0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -72,7 +72,7 @@ before_install: - git submodule update --init --recursive capstone dtc ui/keycodemapdb before_script: - mkdir -p ${BUILD_DIR} && cd ${BUILD_DIR} - - ${SRC_DIR}/configure ${CONFIG} || { cat config.log && exit 1; } + - ${SRC_DIR}/configure ${CONFIG} --extra-cflags=-std=gnu99 || { cat config.log && exit 1; } script: - make ${MAKEFLAGS} && ${TEST_CMD} matrix: -- 2.17.1