aboutsummaryrefslogtreecommitdiff
path: root/iconv
diff options
context:
space:
mode:
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-01-27 09:37:04 +0100
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>2015-01-27 09:37:04 +0100
commit5fe8e3597562ac8e0e3df1399ebf804f72e7f661 (patch)
tree56a9329528d3a5643f9b1a496c5f2288ec86a83a /iconv
parentfa20da31c83b1b64f98f4bbb25ff9460c57af013 (diff)
downloadglibc-5fe8e3597562ac8e0e3df1399ebf804f72e7f661.tar
glibc-5fe8e3597562ac8e0e3df1399ebf804f72e7f661.tar.gz
glibc-5fe8e3597562ac8e0e3df1399ebf804f72e7f661.tar.bz2
glibc-5fe8e3597562ac8e0e3df1399ebf804f72e7f661.zip
iconv: Suppress array out of bounds warning.
Diffstat (limited to 'iconv')
-rw-r--r--iconv/loop.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/iconv/loop.c b/iconv/loop.c
index 63148e33b4..48f47620c0 100644
--- a/iconv/loop.c
+++ b/iconv/loop.c
@@ -56,7 +56,7 @@
#include <sys/param.h> /* For MIN. */
#define __need_size_t
#include <stddef.h>
-
+#include <libc-internal.h>
/* We have to provide support for machines which are not able to handled
unaligned memory accesses. Some of the character encodings have
@@ -392,8 +392,14 @@ SINGLE(LOOPFCT) (struct __gconv_step *step,
{
*inptrp = inend;
# ifdef STORE_REST
+
+ /* Building with -O3 GCC emits a `array subscript is above array
+ bounds' warning. GCC BZ #64739 has been opened for this. */
+ DIAG_PUSH_NEEDS_COMMENT;
+ DIAG_IGNORE_NEEDS_COMMENT (4.9, "-Warray-bounds");
while (inptr < inend)
bytebuf[inlen++] = *inptr++;
+ DIAG_POP_NEEDS_COMMENT;
inptr = bytebuf;
inptrp = &inptr;