From 050aa3ab70dd69d1ca8ffe94fd146039a0885550 Mon Sep 17 00:00:00 2001 From: aqua Date: Wed, 24 May 2023 21:29:00 +0300 Subject: Make code ANSI C compatible --- i686/toolchain.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'i686/toolchain.mk') diff --git a/i686/toolchain.mk b/i686/toolchain.mk index f3f4732..460717e 100644 --- a/i686/toolchain.mk +++ b/i686/toolchain.mk @@ -3,10 +3,10 @@ ARCH=i686 # define compiler, linker, archiver and strip and their flags ${ARCH}_AS := i686-elf-as -${ARCH}_CC := i686-elf-gcc +${ARCH}_CC := i686-elf-gcc -ansi ${ARCH}_CCID := $(shell ${${ARCH}_CC} --version | head -n1) ${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer \ - -D__ARCH__="${ARCH}" -ffreestanding -std=gnu11 -mgeneral-regs-only \ + -D__ARCH__="${ARCH}" -ffreestanding -mgeneral-regs-only \ $(shell echo ${CONFIG_CFLAGS}) ${ARCH}_LD := i686-elf-ld -- cgit v1.2.1