]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
gcc8: Only disable warning options for gcc.
authorE.Smith <31170571+azlm8t@users.noreply.github.com>
Wed, 26 Sep 2018 21:17:19 +0000 (22:17 +0100)
committerperexg <perex@perex.cz>
Thu, 27 Sep 2018 06:05:02 +0000 (08:05 +0200)
The clang compiler does not have such options.

Makefile

index 4dffc62aa0ad7e7f1a46b0c93343da0842c86a49..169c0f289e4480f77e856a7f1c36aa9f19b7c8ab 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -51,7 +51,9 @@ endif
 CFLAGS  += -Wall -Wwrite-strings -Wno-deprecated-declarations
 CFLAGS  += -Wmissing-prototypes
 CFLAGS  += -fms-extensions -funsigned-char -fno-strict-aliasing
+ifeq ($(COMPILER), gcc)
 CFLAGS  += -Wno-stringop-truncation -Wno-stringop-overflow
+endif
 CFLAGS  += -D_FILE_OFFSET_BITS=64
 CFLAGS  += -I${BUILDDIR} -I${ROOTDIR}/src -I${ROOTDIR}
 ifeq ($(CONFIG_ANDROID),yes)