From be80380501e4d52c5971c733ed2c972f8508bad9 Mon Sep 17 00:00:00 2001 From: pascalek Date: Fri, 11 May 2007 19:15:52 +0000 Subject: [PATCH] - concatenation of string literals with __FUNCTION__ is deprecated Changed files: dict-web1913-gcc.patch -> 1.1 --- dict-web1913-gcc.patch | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 dict-web1913-gcc.patch diff --git a/dict-web1913-gcc.patch b/dict-web1913-gcc.patch new file mode 100644 index 0000000..2fe21e3 --- /dev/null +++ b/dict-web1913-gcc.patch @@ -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 ); -- 2.43.0