Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Makefile.uk: Fix gcc specific warnings #51

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Makefile.uk
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,15 @@ LIBMUSL_HDRS_FLAGS-y += -Wno-error=sign-compare
LIBMUSL_HDRS_FLAGS-y += -Wno-builtin-macro-redefined

LIBMUSL_CFLAGS-y += -Wno-implicit-fallthrough
LIBMUSL_CFLAGS-y += -Wno-restrict
LIBMUSL_CFLAGS-y += -Wno-unused-but-set-variable
LIBMUSL_CFLAGS-$(call have_gcc) += -Wno-restrict
LIBMUSL_CFLAGS-$(call have_gcc) += -Wno-unused-but-set-variable
LIBMUSL_CFLAGS-y += -Wno-sign-compare
LIBMUSL_CFLAGS-y += -Wno-empty-body
LIBMUSL_CFLAGS-y += -Wno-maybe-uninitialized
LIBMUSL_CFLAGS-$(call have_gcc) += -Wno-maybe-uninitialized
LIBMUSL_CFLAGS-y += -Wno-unknown-pragmas
LIBMUSL_CFLAGS-y += -Wno-missing-braces
LIBMUSL_CFLAGS-$(call gcc_version_ge,8,0) += -Wno-cast-function-type
LIBMUSL_CFLAGS-y += -Wno-format-contains-nul
LIBMUSL_CFLAGS-$(call have_gcc) += -Wno-format-contains-nul
LIBMUSL_CFLAGS-y += -Wno-type-limits
LIBMUSL_CFLAGS-y += -DUK_LIBC_SYSCALL=0
LIBMUSL_CFLAGS-y += -D_XOPEN_SOURCE=700
Expand Down