[COMMITTED PATCH] Remove unnecessary include in memmove_chk.c
Siddhesh Poyarekar
siddhesh@redhat.com
Thu Jun 26 18:33:00 GMT 2014
I have pushed this as obvious since the generated code is identical
before and after on x86_64. As a bonus, it gets rid of two -Wundef
warnings that were unnecessarily inherited from pagecopy.h.
Siddhesh
commit b97c9ce50d5d004285fc43c3f99b27630a155c5f
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
Date: Fri Jun 27 00:01:37 2014 +0530
Remove unnecessary include in memmove_chk
This also has the side-effect of fixing a couple of Wundef warnings
raised from pagecopy.h. The generated code is identical before and
after this patch.
diff --git a/ChangeLog b/ChangeLog
index 506eaed..44f96bb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
2014-06-26 Siddhesh Poyarekar <siddhesh@redhat.com>
+ * debug/memmove_chk.c: Remove pagecopy.h include.
+
* time/mktime.c (leapyear): Remove inline keyword. The code is now
identical to gnulib mktime.
diff --git a/debug/memmove_chk.c b/debug/memmove_chk.c
index f8c4454..10eb632 100644
--- a/debug/memmove_chk.c
+++ b/debug/memmove_chk.c
@@ -20,7 +20,6 @@
#include <string.h>
#include <memcopy.h>
-#include <pagecopy.h>
#ifndef MEMMOVE_CHK
# define MEMMOVE_CHK __memmove_chk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 473 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20140626/bda5a98b/attachment.sig>
More information about the Libc-alpha
mailing list