[w3m-dev 04260] Warning (Re: road to 0.5.2)

[email protected] Tue, 29 May 2007 18:47:12 +0900 (JST)
Newsgroups gmane.comp.web.w3m.devel
Message-ID <[email protected]>

> PS.
>  freeze  gcc ( Solaris  HP-UX 
> cc & ld & make) configure & make 
> 

HP-UX  cc  warning 
(MAX  MIN )
-----------------------------------
  <[email protected]>

diff -u main.c.orig main.c
--- main.c.orig	Thu May 24 13:36:38 2007
+++ main.c	Tue May 29 15:44:09 2007
@@ -1494,9 +1494,6 @@
  * Command functions: These functions are called with a keystroke.
  */
 
-#define MAX(a, b)  ((a) > (b) ? (a) : (b))
-#define MIN(a, b)  ((a) < (b) ? (a) : (b))
-
 static void
 nscroll(int n, int mode)
 {
@@ -6176,7 +6173,7 @@
     displayBuffer(Currentbuf, B_REDRAW_IMAGE);
 }
 
-void
+static void
 followTab(TabBuffer * tab)
 {
     Buffer *buf;
@@ -6278,7 +6275,7 @@
 	    "Goto relative URL on new tab: ", TRUE);
 }
 
-void
+static void
 moveTab(TabBuffer * t, TabBuffer * t2, int right)
 {
     if (t2 == NO_TABBUFFER)
diff -u display.c.orig display.c
--- display.c.orig	Thu Nov  4 13:30:36 2004
+++ display.c	Tue May 29 15:43:46 2007
@@ -2,9 +2,6 @@
 #include <signal.h>
 #include "fm.h"
 
-#define MAX(a, b)  ((a) > (b) ? (a) : (b))
-#define MIN(a, b)  ((a) < (b) ? (a) : (b))
-
 /* *INDENT-OFF* */
 #ifdef USE_COLOR