mirror of
https://github.com/notwa/rc
synced 2024-11-13 20:49:03 -08:00
76 lines
1.8 KiB
Text
76 lines
1.8 KiB
Text
#!/usr/bin/env false
|
|
# YES_ZSH YES_BASH NO_DASH NO_ASH
|
|
|
|
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
|
|
)
|
|
|
|
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
|
|
)
|