[sr-dev] git:master:d63548dc: Makefile.defs: enabled clang compile warning flags -Wunused-variable -Wuninitialized
Daniel-Constantin Mierla
miconda at gmail.com
Tue Oct 2 15:34:47 CEST 2018
Module: kamailio
Branch: master
Commit: d63548dc311df5f2550e788fc026d9ec7c7dd2f4
URL: https://github.com/kamailio/kamailio/commit/d63548dc311df5f2550e788fc026d9ec7c7dd2f4
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2018-10-02T15:33:51+02:00
Makefile.defs: enabled clang compile warning flags -Wunused-variable -Wuninitialized
---
Modified: src/Makefile.defs
---
Diff: https://github.com/kamailio/kamailio/commit/d63548dc311df5f2550e788fc026d9ec7c7dd2f4.diff
Patch: https://github.com/kamailio/kamailio/commit/d63548dc311df5f2550e788fc026d9ec7c7dd2f4.patch
---
diff --git a/src/Makefile.defs b/src/Makefile.defs
index dd12e6e60b..784e2a510d 100644
--- a/src/Makefile.defs
+++ b/src/Makefile.defs
@@ -1709,9 +1709,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