SOURCES: dict-web1913-gcc.patch (NEW) - concatenation of string li...

pascalek pascalek at pld-linux.org
Fri May 11 21:15:57 CEST 2007


Author: pascalek                     Date: Fri May 11 19:15:57 2007 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- concatenation of string literals with __FUNCTION__ is deprecated

---- Files affected:
SOURCES:
   dict-web1913-gcc.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/dict-web1913-gcc.patch
diff -u /dev/null SOURCES/dict-web1913-gcc.patch:1.1
--- /dev/null	Fri May 11 21:15:57 2007
+++ SOURCES/dict-web1913-gcc.patch	Fri May 11 21:15:52 2007
@@ -0,0 +1,39 @@
+diff -Nur dict-web1913-1.4.orig/libmaa/parse.c dict-web1913-1.4.chng/libmaa/parse.c
+--- dict-web1913-1.4.orig/libmaa/parse.c	1998-02-22 20:32:36.000000000 +0100
++++ dict-web1913-1.4.chng/libmaa/parse.c	2007-05-11 21:11:25.000000000 +0200
+@@ -75,7 +75,7 @@
+ 
+    if (!cpp) {
+       if ((cpp = getenv( "KHEPERA_CPP" ))) {
+-         PRINTF(MAA_PARSE,(__FUNCTION__ ": Using KHEPERA_CPP from %s\n",cpp));
++         PRINTF(MAA_PARSE,("%s: Using KHEPERA_CPP from %s\n", __FUNCTION__, cpp));
+       }
+       
+                                 /* Always look for gcc's cpp first, since
+@@ -86,7 +86,7 @@
+          
+          if (fread( buf, 1, 1023, tmp ) > 0) {
+             if ((t = strchr( buf, '\n' ))) *t = '\0';
+-            PRINTF(MAA_PARSE,(__FUNCTION__ ": Using GNU cpp from %s\n",buf));
++            PRINTF(MAA_PARSE,("%s: Using GNU cpp from %s\n", __FUNCTION__, buf));
+             cpp = str_find( buf );
+             extra_options = "-nostdinc -nostdinc++";
+          }
+@@ -103,7 +103,7 @@
+          for (pt = cpps; **pt; pt++) {
+             if (!access( *pt, X_OK )) {
+                PRINTF(MAA_PARSE,
+-                      (__FUNCTION__ ": Using system cpp from %s\n",*pt));
++                      ("%s: Using system cpp from %s\n", __FUNCTION__, *pt));
+                cpp = *pt;
+                break;
+             }
+@@ -123,7 +123,7 @@
+    sprintf( buffer, "%s -I. %s %s 2>/dev/null", cpp,
+ 	    _prs_cpp_options ? _prs_cpp_options : "", filename );
+ 
+-   PRINTF(MAA_PARSE,(__FUNCTION__ ": %s\n",buffer));
++   PRINTF(MAA_PARSE,("%s: %s\n", __FUNCTION__, buffer));
+    if (!(yyin = popen( buffer, "r" )))
+       err_fatal_errno( __FUNCTION__,
+ 		       "Cannot open \"%s\" for read\n", filename );
================================================================


More information about the pld-cvs-commit mailing list