]> sourceware.org Git - lvm2.git/commitdiff
makefiles: use gcc warns with gcc only
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 31 Jul 2017 22:04:20 +0000 (00:04 +0200)
committerZdenek Kabelac <zkabelac@redhat.com>
Tue, 1 Aug 2017 09:53:13 +0000 (11:53 +0200)
Avoid passing  'gcc' warning options to non-gcc compiler

make.tmpl.in

index 2b2ddd16a30c22f516428ba9d52e3b1f664b7852..102079ef4eced4b7eafef24b0ba2ca365dc3d292 100644 (file)
@@ -163,6 +163,7 @@ INSTALL_SCRIPT = $(INSTALL) -p $(M_INSTALL_PROGRAM)
 .SUFFIXES:
 .SUFFIXES: .c .cpp .d .o .so .a .po .pot .mo .dylib
 
+ifeq ("$(notdir $(CC))", "gcc")
 WFLAGS +=\
  -Wall\
  -Wcast-align\
@@ -207,6 +208,7 @@ endif
 ifeq ("@HAVE_WSYNCNAND@", "yes")
 WFLAGS += -Wsync-nand
 endif
+endif
 
 ifneq ("@STATIC_LINK@", "yes")
 ifeq ("@HAVE_PIE@", "yes")
This page took 0.03734 seconds and 5 git commands to generate.