mirror of
https://github.com/notwa/rc
synced 2024-11-05 02:29:06 -08:00
55 lines
1.3 KiB
Text
55 lines
1.3 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
|
|
)
|