diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-18 19:36:02 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-01-18 19:36:02 +0000 |
commit | 3aab0c613c719283f66ec57215af9626b9c57ab2 (patch) | |
tree | 58835d19c4b16b97e488cf9497443d375978959e /libmpx | |
parent | 7f8cbcaf81be3052ebd04aa6ad78a4a869c0e915 (diff) | |
download | gcc-3aab0c613c719283f66ec57215af9626b9c57ab2.tar.gz |
* mpxwrap/mpx_wrappers.c (__mpx_wrapper_memmove): Avoid
-Wdiscarded-qualifiers warning. Fix up formatting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@232537 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libmpx')
-rw-r--r-- | libmpx/ChangeLog | 5 | ||||
-rw-r--r-- | libmpx/mpxwrap/mpx_wrappers.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/libmpx/ChangeLog b/libmpx/ChangeLog index d5308077849..d028bcafde5 100644 --- a/libmpx/ChangeLog +++ b/libmpx/ChangeLog @@ -1,3 +1,8 @@ +2016-01-18 Jakub Jelinek <jakub@redhat.com> + + * mpxwrap/mpx_wrappers.c (__mpx_wrapper_memmove): Avoid + -Wdiscarded-qualifiers warning. Fix up formatting. + 2015-12-29 Tsvetkova Alexandra <aleksandra.tsvetkova@intel.com> * libmpxwrap/mpx_wrappers.c (__mpx_wrapper_memmove): Special diff --git a/libmpx/mpxwrap/mpx_wrappers.c b/libmpx/mpxwrap/mpx_wrappers.c index 4df4e9e76e8..d4c83ef484c 100644 --- a/libmpx/mpxwrap/mpx_wrappers.c +++ b/libmpx/mpxwrap/mpx_wrappers.c @@ -486,12 +486,12 @@ __mpx_wrapper_memmove (void *dst, const void *src, size_t n) /* When we copy exactly one pointer it is faster to just use bndldx + bndstx. */ if (n == sizeof (void *)) - { - const void **s = (const void**)src; - void **d = (void**)dst; - *d = *s; - return dst; - } + { + void *const *s = (void *const *) src; + void **d = (void **) dst; + *d = *s; + return dst; + } memmove (dst, src, n); |