# --- T2-COPYRIGHT-BEGIN --- # t2/architecture/avr32/parse-config # Copyright (C) 2004 - 2025 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 # --- T2-COPYRIGHT-END --- # default to a newer C standard case $pkg in linux|e2fsprogs) : ;; *) var_append CC_WRAPPER_INSERT ' ' '-std=gnu99' ;; esac # other quirks and overrides case $pkg in glib) var_append GCC_WRAPPER_REMOVE ' ' '-Werror=missing-prototypes' ;; gcc) var_append SYSCC_WRAPPER_APPEND ' ' '-Wno-error=implicit-int' var_append SYSCC_WRAPPER_APPEND ' ' '-Wno-error=incompatible-pointer-types' ;; libnl) var_append GCC_WRAPPER_REMOVE ' ' -Wvla ;; sysvinit|perl-xml-parser) var_append GCC_WRAPPER_REMOVE ' ' '-fstack-protector-strong' ;; ppp|procps|sysklogd) var_append GCC_WRAPPER_REMOVE ' ' '-Wno-unused-result' ;; nfs-utils) var_append GCC_WRAPPER_REMOVE ' ' '-Wno-cast-function-type -Werror=unused-result' ;; iptables) var_append GCC_WRAPPER_REMOVE ' ' '-Wlogical-op' ;; libusb) var_append GCC_WRAPPER_REMOVE ' ' '-std=gnu11' var_append GCC_WRAPPER_APPEND ' ' '-D_Thread_local=''' # Note: manually, on CLI, this needs extra quotes! var_append GCC_WRAPPER_APPEND ' ' "-D_Static_assert(a,b)=do{}while(0)" ;; libgcrypt) var_append CC_WRAPPER_APPEND ' ' './rndjent.c?-O0:' ;; udev) var_append GCC_WRAPPER_REMOVE ' ' '-Wtype-limits' ;; utf8proc) var_append GCC_WRAPPER_REMOVE ' ' '-Wsign-conversion' ;; python) var_append GCC_WRAPPER_REMOVE ' ' '-std=c11' ;; readline) var_append GCC_WRAPPER_REMOVE ' ' '-Wno-tautological-constant-out-of-range-compare' ;; esac