trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sor...@apache.org
Subject trafficserver git commit: Fix clang warning
Date Thu, 22 Jan 2015 02:59:17 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/4.2.x 710c7871d -> 7b4c41112


Fix clang warning


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/7b4c4111
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/7b4c4111
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/7b4c4111

Branch: refs/heads/4.2.x
Commit: 7b4c41112eeb480ae8433346bebc3f029f1a1776
Parents: 710c787
Author: Phil Sorber <sorber@apache.org>
Authored: Wed Jan 21 19:58:52 2015 -0700
Committer: Phil Sorber <sorber@apache.org>
Committed: Wed Jan 21 19:58:52 2015 -0700

----------------------------------------------------------------------
 cmd/traffic_cop/traffic_cop.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/7b4c4111/cmd/traffic_cop/traffic_cop.cc
----------------------------------------------------------------------
diff --git a/cmd/traffic_cop/traffic_cop.cc b/cmd/traffic_cop/traffic_cop.cc
index 088be6a..360acec 100644
--- a/cmd/traffic_cop/traffic_cop.cc
+++ b/cmd/traffic_cop/traffic_cop.cc
@@ -48,7 +48,9 @@ union semun
 #include <grp.h>
 
 static const long MAX_LOGIN =  sysconf(_SC_LOGIN_NAME_MAX) <= 0 ? _POSIX_LOGIN_NAME_MAX
:  sysconf(_SC_LOGIN_NAME_MAX);
+#if TS_USE_COP_DEBUG
 static const char COP_TRACE_FILE[] = "/tmp/traffic_cop.trace";
+#endif
 
 #define OPTIONS_MAX     32
 #define OPTIONS_LEN_MAX 1024


Mime
View raw message