You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by bc...@apache.org on 2014/05/30 23:05:09 UTC

[37/50] [abbrv] git commit: TS-2859: remove DBG macros to not generate warnings from GCC 4.9

TS-2859: remove DBG macros to not generate warnings from GCC 4.9


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

Branch: refs/heads/5.0.x
Commit: e7586dfee7a04b44e3c378a484cc1e776e847b27
Parents: e9ac7f6
Author: Marcin Juszkiewicz <mj...@redhat.com>
Authored: Thu May 29 12:15:43 2014 -0700
Committer: James Peach <jp...@apache.org>
Committed: Thu May 29 12:16:53 2014 -0700

----------------------------------------------------------------------
 CHANGES           |  2 ++
 lib/ts/ink_defs.h | 22 ----------------------
 2 files changed, 2 insertions(+), 22 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e7586dfe/CHANGES
----------------------------------------------------------------------
diff --git a/CHANGES b/CHANGES
index dbfc39b..7e70311 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,6 +1,8 @@
                                                          -*- coding: utf-8 -*-
 Changes with Apache Traffic Server 5.0.0
 
+  *) [TS-2859] Remove DBG macros to not generate warnings from GCC 4.9.
+
   *) [TS-2858] Build failures on OmniOS. Also add some LuaJIT flags as per
    Theo's and Daniel's recommendations.
 

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/e7586dfe/lib/ts/ink_defs.h
----------------------------------------------------------------------
diff --git a/lib/ts/ink_defs.h b/lib/ts/ink_defs.h
index b5e8122..ad728a5 100644
--- a/lib/ts/ink_defs.h
+++ b/lib/ts/ink_defs.h
@@ -131,28 +131,6 @@ countof(const T (&)[N]) {
 #define ROUNDUP(x, y) ((((x)+((y)-1))/(y))*(y))
 #endif
 
-/* Debugging
-*/
-#ifdef NDEBUG
-
-#define FDBG
-#define DBG(s)
-#define DBG1(s,a)
-#define DBG2(s,a1,a2)
-#define DBG3(s,a1,a2,a3)
-#define DBG4(s,a1,a2,a3,a4)
-
-#else
-
-#define FDBG                if (debug_level==1) printf("debug "__FILE__":%d %s : entered\n" ,__LINE__,__FUNCTION__)
-#define DBG(s)              if (debug_level==1) printf("debug "__FILE__":%d %s :" s ,__LINE__,__FUNCTION__)
-#define DBG1(s,a)           if (debug_level==1) printf("debug "__FILE__":%d %s :" s ,__LINE__,__FUNCTION__, a)
-#define DBG2(s,a1,a2)       if (debug_level==1) printf("debug "__FILE__":%d %s :" s ,__LINE__,__FUNCTION__, a1,a2)
-#define DBG3(s,a1,a2,a3)    if (debug_level==1) printf("debug "__FILE__":%d %s :" s ,__LINE__,__FUNCTION__, a1,a2,a3)
-#define DBG4(s,a1,a2,a3,a4) if (debug_level==1) printf("debug "__FILE__":%d %s :" s ,__LINE__,__FUNCTION__, a1,a2,a3,a4)
-
-#endif
-
 /* Types
 */
 typedef void *(*VPVP_PFN) (void *);