[RFA] AR Index: Add exceptions for gnulib/string.in.h
Pierre Muller
muller@ics.u-strasbg.fr
Mon Mar 23 23:14:00 GMT 2009
2 strdup and 2 strerror failures listed in
AR Index are due to code in gnulib/string.in.h
header.
This code inserts a linking time warning
so I suppose that it can be added to the list of
occurrences that can be ignored.
Commit log:
* Add exceptions for gnulib/string.in.h
for 2 strdup and 2 strerror occurrences.
Is this OK?
Pierre Muller
Pascal language support maintainer for GDB
Index: gdb_ari.sh
===================================================================
RCS file: /cvs/gdbadmin/ss/gdb_ari.sh,v
retrieving revision 1.80
diff -u -p -r1.80 gdb_ari.sh
--- gdb_ari.sh 23 Mar 2009 14:38:19 -0000 1.80
+++ gdb_ari.sh 23 Mar 2009 22:46:00 -0000
@@ -498,6 +498,7 @@ Do not use &&, or || at the end of a lin
BEGIN { doc["strerror"] = "\
Do not use strerror(), instead use safe_strerror()"
category["strerror"] = ari_regression
+ fix("strerror", "gdb/gnulib/string.in.h", 2)
fix("strerror", "gdb/gdb_string.h", 1)
fix("strerror", "gdb/mingw-hdep.c", 1)
fix("strerror", "gdb/posix-hdep.c", 1)
@@ -1336,6 +1337,7 @@ Do not use strdup(), instead use xstrdup
category["strdup"] = ari_regression
}
/(^|[^_[:alnum:]])strdup[[:space:]]*\(/ {
+ fix("strdup", "gdb/gnulib/string.in.h", 2)
fail("strdup")
}
More information about the Gdb-patches
mailing list