diff options
author | Ayke van Laethem <[email protected]> | 2021-04-14 02:23:01 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-04-14 09:17:54 +0200 |
commit | 96b1b76483a99647cc12b1c0f1d15c95f1d54025 (patch) | |
tree | 2ec04409d460e7dc21ca2cfbf3775104a8010035 /targets/nrf52833.json | |
parent | f234df7a50e6377adc3cf0133e847f48e9f2aaa2 (diff) | |
download | tinygo-96b1b76483a99647cc12b1c0f1d15c95f1d54025.tar.gz tinygo-96b1b76483a99647cc12b1c0f1d15c95f1d54025.zip |
all: use -Qunused-arguments only for assembly files
The -Qunused-arguments flag disables the warning where some flags are
not relevant to a compilation. This commonly happens when compiling
assembly files (.s or .S files) because some flags are specific to C and
not relevant to assembly.
Because practically all baremetal targets need some form of assembly,
this flag is added to most CFlags. This creates a lot of noise. And it
is also added for compiling C code where it might hide bugs (by hiding
the fact a flag is actually unused).
This commit adds the flag to all assembly compilations and removes them
from all target JSON files.
Diffstat (limited to 'targets/nrf52833.json')
-rw-r--r-- | targets/nrf52833.json | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/targets/nrf52833.json b/targets/nrf52833.json index a1c88a6f2..54304dbc6 100644 --- a/targets/nrf52833.json +++ b/targets/nrf52833.json @@ -2,7 +2,6 @@ "inherits": ["cortex-m4"], "build-tags": ["nrf52833", "nrf"], "cflags": [ - "-Qunused-arguments", "-DNRF52833_XXAA", "-I{root}/lib/CMSIS/CMSIS/Include", "-I{root}/lib/nrfx/mdk" |