summaryrefslogtreecommitdiff
path: root/resolv
diff options
context:
space:
mode:
authorCarlos O'Donell <carlos@redhat.com>2016-11-02 13:01:36 -0400
committerCarlos O'Donell <carlos@redhat.com>2016-11-02 13:01:36 -0400
commit0cb9dcc8f226ab5116df42e0e1fff06e10a85b45 (patch)
tree3b2492a0aa37fc446ef933deb93649f24ce81457 /resolv
parent9032070deaa03431921315f973c548c2c403fecc (diff)
downloadglibc-0cb9dcc8f226ab5116df42e0e1fff06e10a85b45.tar.gz
Bug 20729: Fix build failures on ppc64 and other arches.
The changes to fix bug 20729 introduced an error which removed an ignore diagnostic from -O2 by using the new -Os related macro. This broke ppc64 builds. This commit fixes the mistake. Tested on x86, x86_64, ppc64, ppc64le, arm, aarch64, and s390x.
Diffstat (limited to 'resolv')
-rw-r--r--resolv/res_send.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c
index 4ec8c1a16d..e96d5d409d 100644
--- a/resolv/res_send.c
+++ b/resolv/res_send.c
@@ -664,7 +664,7 @@ send_vc(res_state statp,
a false-positive.
*/
DIAG_PUSH_NEEDS_COMMENT;
- DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
+ DIAG_IGNORE_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
int resplen;
DIAG_POP_NEEDS_COMMENT;
struct iovec iov[4];
@@ -937,7 +937,7 @@ reopen (res_state statp, int *terrno, int ns)
the function return -1 before control flow reaches
the call to connect with slen. */
DIAG_PUSH_NEEDS_COMMENT;
- DIAG_IGNORE_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
+ DIAG_IGNORE_Os_NEEDS_COMMENT (5, "-Wmaybe-uninitialized");
if (connect(EXT(statp).nssocks[ns], nsap, slen) < 0) {
DIAG_POP_NEEDS_COMMENT;
Aerror(statp, stderr, "connect(dg)", errno, nsap);