Commit 4cf4bbef authored by Lasse Karstensen's avatar Lasse Karstensen

Shorten compiler flags when developing.

This commit attempts to make it easier to read build output, and
hopefully makes configure.ac easier as well.

-Wall has already been added around line 645, no need to add it twice.

On GCC -Wreturn-type is a part of -Wall, which we enable elsewhere.

    https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html

On Clang -Wreturn-type is enabled by default:

    https://clang.llvm.org/docs/DiagnosticsReference.html#wreturn-type

Same with -Wswitch as -Wreturn-type, so that can be removed as well.

Finally, use spaces instead of tabs to make cc output shorter and more
readable.
parent c7b96c31
......@@ -671,24 +671,20 @@ AX_CHECK_COMPILE_FLAG([-Werror=unused-result],
# This corresponds to FreeBSD's WARNS level 6
DEVELOPER_CFLAGS=" \
-Werror \
-Wall \
-Wno-format-y2k \
-W \
-Wstrict-prototypes \
-Wmissing-prototypes \
-Wpointer-arith \
-Wreturn-type \
-Wcast-qual \
-Wwrite-strings \
-Wswitch \
-Wshadow \
-Wunused-parameter \
-Wcast-align \
-Wchar-subscripts \
-Wnested-externs \
-Wextra \
-Wno-sign-compare \
-Werror \
-Wno-format-y2k \
-Wstrict-prototypes \
-Wmissing-prototypes \
-Wpointer-arith \
-Wcast-qual \
-Wwrite-strings \
-Wshadow \
-Wunused-parameter \
-Wcast-align \
-Wchar-subscripts \
-Wnested-externs \
-Wextra \
-Wno-sign-compare \
"
# These are not compliable yet
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment