1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-14 09:29:03 -08:00
rc/sh/arrays

80 lines
1.8 KiB
Text
Raw Normal View History

2021-07-29 00:37:35 -07:00
#!/usr/bin/env false
# YES_ZSH
# YES_BASH
# NO_DASH
2021-09-23 06:48:05 -07:00
# NO_ASH
2021-07-29 00:37:35 -07:00
2019-06-03 09:27:20 -07:00
whoa=(
-Wall
-Wextra
# -Winline # only for C
# -Wshadow # only for C
-Wwrite-strings
# -Wmissing-prototypes
-Werror=implicit-function-declaration
-Werror=uninitialized
-Werror=format-security
-Werror=format-extra-args
-Werror=pointer-to-int-cast
-Werror=int-to-pointer-cast
-Werror=return-type
-Werror=memset-transposed-args
# -Werror=tautological-constant-out-of-range-compare # gcc doesn't like this
# -Werror=undef
-Wno-unused
-Wno-padded
-Wno-missing-field-initializers
# -Wno-type-limits # bad for generated code (macros, templates)
-Wno-misleading-indentation # gcc 6
-Wno-disabled-macro-expansion # clang
-Wno-language-extension-token # clang
-Wno-unknown-warning-option # clang
# trying some stuff:
-Wduplicated-cond # gcc 6
-Wduplicated-branches # gcc 7
-Wlogical-op
-Wrestrict # gcc 7
-Wnull-dereference # gcc 6
#-Wjump-misses-init # only for C
-Wdouble-promotion
-Wformat=2
)
welp=(
-fno-exceptions
-fno-non-call-exceptions
-fno-rtti
#-fno-use-cxa-atexit
#-ffreestanding
-fno-common
-ffunction-sections -fdata-sections -Wl,--gc-sections
-finline-small-functions -findirect-inlining
)
2021-12-02 13:06:05 -08:00
whee=(
-Wall
-Wextra
-Wwrite-strings
-Werror=uninitialized
-Werror=format-security
-Werror=format-extra-args
-Werror=int-to-pointer-cast
-Werror=return-type
-Werror=memset-transposed-args
-Wno-unused
-Wno-padded
-Wno-missing-field-initializers
-Wno-misleading-indentation
-Wduplicated-cond
-Wduplicated-branches
-Wlogical-op
-Wrestrict
-Wnull-dereference
-Wdouble-promotion
-Wformat=2
-Werror=double-promotion
)