Module: kamailio
Branch: 5.1
Commit: 1252ae2523d16edda0465cfb441eaedd2de62d27
URL:
https://github.com/kamailio/kamailio/commit/1252ae2523d16edda0465cfb441eaed…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2018-10-02T16:06:14+02:00
Makefile.defs: enabled clang compile warning flags -Wunused-variable -Wuninitialized
(cherry picked from commit d63548dc311df5f2550e788fc026d9ec7c7dd2f4)
---
Modified: src/Makefile.defs
---
Diff:
https://github.com/kamailio/kamailio/commit/1252ae2523d16edda0465cfb441eaed…
Patch:
https://github.com/kamailio/kamailio/commit/1252ae2523d16edda0465cfb441eaed…
---
diff --git a/src/Makefile.defs b/src/Makefile.defs
index 6cf372786d..697252b0be 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -1707,9 +1707,9 @@ else # no gcc
ifeq ($(CC_NAME), icc)
CFLAGS+= -Wall
else # no icc
-ifeq ($(CC_NAME), suncc)
- # FIXME: is the default (-Xa ?) enough?
-endif # CC_NAME=suncc
+ifeq ($(CC_NAME), clang)
+ CFLAGS+= -Wunused-variable -Wuninitialized
+endif # CC_NAME=clang
endif # CC_NAME=icc
endif # CC_NAME=gcc