[Toybox] [PATCH] awk -- more patches

Rob Landley rob at landley.net
Wed Oct 23 15:38:16 PDT 2024


On 10/23/24 12:34, enh wrote:
> the Android.bp file for toybox has
> 
>          "-Wno-string-plus-int",
> 
> since this is quite common in toybox code.

In theory scripts/portability.sh should be providing that for clang already:

# Disable pointless warnings only clang produces
[ -n "$("$CROSS_COMPILE$CC" --version | grep -w clang)" ] &&
   CFLAGS+=" -Wno-string-plus-int -Wno-invalid-source-encoding" ||
# And ones only gcc produces
   CFLAGS+=" -Wno-restrict -Wno-format-overflow"

(The distinction is because each compiler complains about -Wno-blah 
flags disabling warnings it doesn't produce...)

Rob


More information about the Toybox mailing list