[sawfish] allow compilation with -DDEBUG flag passed



commit 9a16c50927b8e60d9764b332e16c07e353f1923d
Author: Christopher Roy Bratusek <zanghar freenet de>
Date:   Sun May 16 20:41:22 2010 +0200

    allow compilation with -DDEBUG flag passed

 ChangeLog     |    5 +++++
 man/news.texi |    2 ++
 src/display.c |    4 ----
 3 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 18e21d8..0851d0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-16  Christopher Bratusek <zanghar freenet de>
+	* src/display.c: allow compilation with -DDEBUG
+
+	* man/news.texi: updated
+
 2010-05-15  Teika Kazura <teika lavabit com>
 	* man/news.texi: Added a link.
 
diff --git a/man/news.texi b/man/news.texi
index 3a2ede7..163a219 100644
--- a/man/news.texi
+++ b/man/news.texi
@@ -31,6 +31,8 @@ didn't follow the specification.
 
 Some *.desktop files are not ignored any more either, i.e., leading
 empty lines and comments are allowed.
+
+ item Allow compilation with -DDEBUG flag passed [Alexey I. Froloff]
 @end itemize
 
 @item New Features
diff --git a/src/display.c b/src/display.c
index d1378b0..c35ba6d 100644
--- a/src/display.c
+++ b/src/display.c
@@ -70,10 +70,6 @@ error_handler (Display *dpy, XErrorEvent *ev)
 {
     Lisp_Window *w;
 
-#ifdef DEBUG
-    print_error (ev);
-#endif
-
     if (ev->resourceid != 0
 	&& (ev->error_code == BadWindow || ev->error_code == BadDrawable))
     {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]