Commit 52c2f0f7 authored by Lucas Russo's avatar Lucas Russo

examples/Makefile: filter out gcc/clang basenames to suppress its warnings

parent 8a54c12c
......@@ -38,11 +38,11 @@ CFLAGS_PLATFORM = -Wall -Wextra -Werror \
-Wno-missing-field-initializers \
-Wno-missing-braces
ifeq ($(CC),$(filter $(CC),gcc cc))
ifeq ($(notdir $(CC)),$(filter $(notdir $(CC)),gcc cc))
CFLAGS_PLATFORM += -Wno-cpp
endif
ifeq ($(CC),clang)
ifeq ($(notdir $(CC)),clang)
CFLAGS_PLATFORM += -Wno-error=\#warnings
endif
......
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