aboutsummaryrefslogtreecommitdiffhomepage
path: root/targets/atsamd51p20a.json
diff options
context:
space:
mode:
authorAyke van Laethem <[email protected]>2021-04-14 02:23:01 +0200
committerRon Evans <[email protected]>2021-04-14 09:17:54 +0200
commit96b1b76483a99647cc12b1c0f1d15c95f1d54025 (patch)
tree2ec04409d460e7dc21ca2cfbf3775104a8010035 /targets/atsamd51p20a.json
parentf234df7a50e6377adc3cf0133e847f48e9f2aaa2 (diff)
downloadtinygo-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/atsamd51p20a.json')
-rw-r--r--targets/atsamd51p20a.json3
1 files changed, 0 insertions, 3 deletions
diff --git a/targets/atsamd51p20a.json b/targets/atsamd51p20a.json
index bf5aa3ce0..bc66ca032 100644
--- a/targets/atsamd51p20a.json
+++ b/targets/atsamd51p20a.json
@@ -1,9 +1,6 @@
{
"inherits": ["cortex-m4"],
"build-tags": ["sam", "atsamd51", "atsamd51p20", "atsamd51p20a"],
- "cflags": [
- "-Qunused-arguments"
- ],
"linkerscript": "targets/atsamd51p20a.ld",
"extra-files": [
"src/device/sam/atsamd51p20a.s"