mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
a4bf63e483
Drop type qualifiers in front of anonymous bit fields (padding for reserved bits) for compatibility with `clang++`. A four line bash script was added to ease fixing new vendor header files.
11 lines
295 B
Bash
Executable File
11 lines
295 B
Bash
Executable File
#!/bin/sh
|
|
|
|
# This script removes type qualifiers from anonymous padding fields in bit
|
|
# fields for compatibility with clang++.
|
|
|
|
offenders="$(grep -Erl '__I [u]*int[0-9]*_t[ \t]*:[0-9]*;')"
|
|
|
|
for file in $offenders; do
|
|
sed -i "$file" -e 's/__I \([u]*int[0-9]*_t[\t ]*:[0-9]*;\)/\1 /g'
|
|
done
|