diff --git a/core/SConscript.boardloader b/core/SConscript.boardloader index 2e2e69c7e..164f65086 100644 --- a/core/SConscript.boardloader +++ b/core/SConscript.boardloader @@ -95,7 +95,7 @@ env.Replace( CCFLAGS='$COPT ' '-g3 ' '-nostdlib ' - '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' + '-std=gnu11 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-ffreestanding ' '-fstack-protector-all ' diff --git a/core/SConscript.bootloader b/core/SConscript.bootloader index bb6f685a4..f408f1280 100644 --- a/core/SConscript.bootloader +++ b/core/SConscript.bootloader @@ -140,7 +140,7 @@ env.Replace( CCFLAGS='$COPT ' '-g3 ' '-nostdlib ' - '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' + '-std=gnu11 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-ffreestanding ' '-fstack-protector-all ' diff --git a/core/SConscript.bootloader_ci b/core/SConscript.bootloader_ci index 181f91402..afffdbc86 100644 --- a/core/SConscript.bootloader_ci +++ b/core/SConscript.bootloader_ci @@ -133,7 +133,7 @@ env.Replace( CCFLAGS='$COPT ' '-g3 ' '-nostdlib ' - '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' + '-std=gnu11 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-ffreestanding ' '-fstack-protector-all ' diff --git a/core/SConscript.bootloader_emu b/core/SConscript.bootloader_emu index 025ea3f5a..fca7b15e2 100644 --- a/core/SConscript.bootloader_emu +++ b/core/SConscript.bootloader_emu @@ -176,7 +176,7 @@ env.Replace( CCFLAGS='$COPT ' '-g3 ' '-nostdlib ' - '-std=gnu99 -Wall -Werror -Wpointer-arith -Wno-missing-braces -fno-common ' + '-std=gnu11 -Wall -Werror -Wpointer-arith -Wno-missing-braces -fno-common ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-ffreestanding ' '-fstack-protector-all ' diff --git a/core/SConscript.firmware b/core/SConscript.firmware index f8782ab35..dd0b6eb2b 100644 --- a/core/SConscript.firmware +++ b/core/SConscript.firmware @@ -406,7 +406,7 @@ env.Replace( CCFLAGS='$COPT ' '-g3 ' '-nostdlib ' - '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' + '-std=gnu11 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-ffreestanding ' '-fstack-protector-all ' diff --git a/core/SConscript.prodtest b/core/SConscript.prodtest index 927693ad3..fec620524 100644 --- a/core/SConscript.prodtest +++ b/core/SConscript.prodtest @@ -133,7 +133,7 @@ env.Replace( CCFLAGS='$COPT ' '-g3 ' '-nostdlib ' - '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' + '-std=gnu11 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-ffreestanding ' '-fstack-protector-all ' diff --git a/core/SConscript.reflash b/core/SConscript.reflash index ea2cb2a1f..0ff853453 100644 --- a/core/SConscript.reflash +++ b/core/SConscript.reflash @@ -103,7 +103,7 @@ env.Replace( CCFLAGS='$COPT ' '-g3 ' '-nostdlib ' - '-std=gnu99 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' + '-std=gnu11 -Wall -Werror -Wdouble-promotion -Wpointer-arith -Wno-missing-braces -fno-common ' '-fsingle-precision-constant -fdata-sections -ffunction-sections ' '-ffreestanding ' '-fstack-protector-all ' diff --git a/core/SConscript.unix b/core/SConscript.unix index 2ec3ef33a..69516b741 100644 --- a/core/SConscript.unix +++ b/core/SConscript.unix @@ -476,7 +476,7 @@ else: env.Replace( CCFLAGS='$COPT ' '-g3 ' - '-std=gnu99 -Wall -Werror -Wuninitialized -Wno-missing-braces ' + '-std=gnu11 -Wall -Werror -Wuninitialized -Wno-missing-braces ' '-fdata-sections -ffunction-sections -fPIE ' + CCFLAGS_MOD, CCFLAGS_QSTR='-DNO_QSTR -DN_X64 -DN_X86 -DN_THUMB', LIBS=['m'],