[sr-dev] git:5.1:1252ae25: Makefile.defs: enabled clang compile warning flags -Wunused-variable -Wuninitialized

Daniel-Constantin Mierla miconda at gmail.com
Tue Oct 2 16:13:39 CEST 2018


Module: kamailio
Branch: 5.1
Commit: 1252ae2523d16edda0465cfb441eaedd2de62d27
URL: https://github.com/kamailio/kamailio/commit/1252ae2523d16edda0465cfb441eaedd2de62d27

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at 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/1252ae2523d16edda0465cfb441eaedd2de62d27.diff
Patch: https://github.com/kamailio/kamailio/commit/1252ae2523d16edda0465cfb441eaedd2de62d27.patch

---

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
 




More information about the sr-dev mailing list