Skip to content

Commit

Permalink
Makefile: Disable some more warnings
Browse files Browse the repository at this point in the history
 * Disable warnings like -Wframe-larger-than,-Wunused-variable,-Wreturn-type,-Wexcess-initializers

Signed-off-by: karthik1896 <karthik1896@outlook.com>
Signed-off-by: Kneba <abenkenary3@gmail.com>
  • Loading branch information
karthik1896 authored and strongreasons committed Jun 17, 2024
1 parent 8ba5249 commit 4703f79
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -671,6 +671,10 @@ KBUILD_CFLAGS += $(call cc-disable-warning, address-of-packed-member)
KBUILD_CFLAGS += $(call cc-disable-warning, attribute-alias)
KBUILD_CFLAGS += $(call cc-disable-warning, misleading-indentation)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-function)
KBUILD_CFLAGS += $(call cc-disable-warning, unused-variable)
KBUILD_CFLAGS += $(call cc-disable-warning, frame-larger-than)
KBUILD_CFLAGS += $(call cc-disable-warning, return-type)
KBUILD_CFLAGS += $(call cc-disable-warning, excess-initializers)

ifdef CONFIG_LD_DEAD_CODE_DATA_ELIMINATION
KBUILD_CFLAGS += $(call cc-option,-ffunction-sections,)
Expand Down

0 comments on commit 4703f79

Please sign in to comment.