# HG changeset patch # User Paul Eggert # Date 1361375459 28800 # Node ID e27f620a8d3686f5a23875a99bc3b3d55593a415 # Parent 840c32a600aadfba7620f65e7c780bbb4a7ed06c regex: ignore old-style-definition warnings * lib/regex.c: Add pragma to ignore these warnings. Problem reported for GNU tar by Pavel Raiskup. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-02-20 Paul Eggert + + regex: ignore old-style-definition warnings + * lib/regex.c: Add pragma to ignore these warnings. + Problem reported for GNU tar by Pavel Raiskup. + 2013-02-19 Paul Eggert getcwd: support coreutils better diff --git a/lib/regex.c b/lib/regex.c --- a/lib/regex.c +++ b/lib/regex.c @@ -24,6 +24,7 @@ # pragma GCC diagnostic ignored "-Wsuggest-attribute=pure" # endif # if (__GNUC__ == 4 && 3 <= __GNUC_MINOR__) || 4 < __GNUC__ +# pragma GCC diagnostic ignored "-Wold-style-definition" # pragma GCC diagnostic ignored "-Wtype-limits" # endif #endif