From c9bfcaeb8f786531d16e3db613ccb99b36d7f83d Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Wed, 20 Feb 2013 07:50:59 -0800 Subject: [PATCH] regex: ignore old-style-definition warnings * lib/regex.c: Add pragma to ignore these warnings. Problem reported for GNU tar by Pavel Raiskup. --- ChangeLog | 6 ++++++ lib/regex.c | 1 + 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index a5b6b13..e66ca4c 100644 --- 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 index ca40e6e..361f763 100644 --- 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 -- 1.7.11.7