This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  082f0d1a771a2febcc14ffce13f44ed7c4553ad4 (commit)
      from  a00ff6423cab863c05f18cbac38abc51afe9d657 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=082f0d1a771a2febcc14ffce13f44ed7c4553ad4


commit 082f0d1a771a2febcc14ffce13f44ed7c4553ad4
Author: Jim Meyering <[email protected]>
Date:   Tue Jan 3 10:25:37 2012 +0100

    build: avoid build failure with --enable-gcc-warnings and recent gcc
    
    * lib/colorize-posix.c: Disable -Wsuggest-attribute=const, to avoid
    warning about this empty init_colorize function.

diff --git a/lib/colorize-posix.c b/lib/colorize-posix.c
index 37bc640..116bbb2 100644
--- a/lib/colorize-posix.c
+++ b/lib/colorize-posix.c
@@ -16,6 +16,12 @@
    Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
    02110-1301, USA.  */
 
+/* Without this pragma, gcc 4.7.0 20120102 suggests that the
+   init_colorize function might be candidate for attribute 'const'  */
+#if (__GNUC__ == 4 && 6 <= __GNUC_MINOR__) || 4 < __GNUC__
+# pragma GCC diagnostic ignored "-Wsuggest-attribute=const"
+#endif
+
 #include <config.h>
 
 #include "colorize.h"

-----------------------------------------------------------------------

Summary of changes:
 lib/colorize-posix.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
grep

Reply via email to