mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-18 12:52:44 +01:00
11 lines
295 B
Bash
11 lines
295 B
Bash
|
#!/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
|