bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] inttostr.c: suppress a warning


From: Jim Meyering
Subject: [PATCH] inttostr.c: suppress a warning
Date: Tue, 23 Dec 2008 22:03:19 +0100

Hi Paul,

Any objection to this change?

>From b6459ede3601010abe11e5e2b766e010e1efce5d Mon Sep 17 00:00:00 2001
From: Jim Meyering <address@hidden>
Date: Sun, 30 Nov 2008 17:36:15 +0100
Subject: [PATCH] inttostr.c: suppress a warning

* lib/inttostr.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
to ignore "...unsigned expression < 0 is always false" warnings.
---
 lib/inttostr.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/lib/inttostr.c b/lib/inttostr.c
index 4ba71f5..510b02c 100644
--- a/lib/inttostr.c
+++ b/lib/inttostr.c
@@ -1,6 +1,6 @@
 /* inttostr.c -- convert integers to printable strings

-   Copyright (C) 2001, 2006 Free Software Foundation, Inc.
+   Copyright (C) 2001, 2006, 2008 Free Software Foundation, Inc.

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -17,6 +17,9 @@

 /* Written by Paul Eggert */

+/* Tell gcc not to warn about the (i < 0) test, below.  */
+#pragma GCC diagnostic ignored "-Wtype-limits"
+
 #include <config.h>

 #include "inttostr.h"
--
1.6.1.rc3.359.g43db1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]