
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.
15 строки
474 Б
JSON
15 строки
474 Б
JSON
{
|
|
"inherits": ["cortex-m4"],
|
|
"build-tags": ["feather_stm32f405", "stm32f405", "stm32f4", "stm32"],
|
|
"automatic-stack-size": false,
|
|
"default-stack-size": 1024,
|
|
"linkerscript": "targets/stm32f405.ld",
|
|
"extra-files": [
|
|
"src/device/stm32/stm32f405.s"
|
|
],
|
|
"flash-method": "command",
|
|
"flash-command": "dfu-util --alt 0 --dfuse-address 0x08000000 --download {bin}",
|
|
"openocd-transport": "swd",
|
|
"openocd-interface": "jlink",
|
|
"openocd-target": "stm32f4x"
|
|
}
|