bug-gv
[Top][All Lists]
Advanced

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

[bug-gv] [PATCH] get rid of old strange ifdef


From: Bernhard R. Link
Subject: [bug-gv] [PATCH] get rid of old strange ifdef
Date: Sat, 5 Jun 2010 11:35:06 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

This fixes some harmless warnings on HURD.

---
As 0 is also a null pointer in C (actually NULL may and
actually is on some platforms just 0), there can be no
advantage of assigning NULL there on unknown platforms.

Additionally all the other widgets already assign 0 there.

diff --git a/gv/src/FileSel.c b/gv/src/FileSel.c
index 24af77b..48c2098 100644
--- a/gv/src/FileSel.c
+++ b/gv/src/FileSel.c
@@ -386,15 +386,9 @@ FileSelectionClassRec file_selectionClassRec = {
     /* resources          */   resources,
     /* resource_count     */   XtNumber(resources),
     /* xrm_class          */   NULLQUARK,
-#if defined(linux) || defined(SYSV) || defined(SVR4)
     /* compress_motion    */   0,
     /* compress_exposure  */   0,
     /* compress_enterleave*/   0,
-#else
-    /* compress_motion    */   NULL,
-    /* compress_exposure  */   NULL,
-    /* compress_enterleave*/   NULL,
-#endif
     /* visible_interest   */   FALSE,
     /* destroy            */   Destroy,
     /* resize             */   XtInheritResize,



reply via email to

[Prev in Thread] Current Thread [Next in Thread]