Skip to content

Commit

Permalink
Makefile.uk: Restrict pointer-to-int-cast and int-to-pointer-cast war…
Browse files Browse the repository at this point in the history
…nings only to C

Otherwise we get warnings that these warnings are only C specific.

Signed-off-by: Costin Lupu <[email protected]>
Reviewed-by: Felipe Huici <[email protected]>
  • Loading branch information
clupuishere authored and felipehuici committed Jun 5, 2019
1 parent 71258f9 commit 7a38d3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile.uk
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ CXXINCLUDES-$(CONFIG_LIBPTHREAD_EMBEDDED) += -I$(LIBPTHREAD-EMBEDDED_EXTRACTED)/
# Global flags
################################################################################
SUPPRESS_FLAGS += -Wno-unused-parameter \
-Wno-pointer-to-int-cast -Wno-int-to-pointer-cast \
-Wno-unused-variable -Wno-unused-value -Wno-unused-function \
-Wno-missing-field-initializers

LIBPTHREAD-EMBEDDED_CFLAGS-y += $(SUPPRESS_FLAGS)
LIBPTHREAD-EMBEDDED_CFLAGS-y += $(SUPPRESS_FLAGS) \
-Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
LIBPTHREAD-EMBEDDED_CXXFLAGS-y += $(SUPPRESS_FLAGS)

LIBPTHREAD-EMBEDDED_EXPORTS = $(LIBPTHREAD-EMBEDDED_BASE)/exportsyms.uk
Expand Down

0 comments on commit 7a38d3f

Please sign in to comment.