Avoid warning through fake initialization.
authorUlrich Drepper <drepper@redhat.com>
Fri, 7 Aug 2009 23:19:54 +0000 (16:19 -0700)
committerUlrich Drepper <drepper@redhat.com>
Fri, 7 Aug 2009 23:19:54 +0000 (16:19 -0700)
ChangeLog
sysdeps/x86_64/multiarch/strcspn-c.c

index bac95b2..0defb11 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-08-07  Ulrich Drepper  <drepper@redhat.com>
+
+       * sysdeps/x86_64/multiarch/strcspn-c.c (STRCSPN_SSE42): Avoid
+       warning through fake initialization.
+
 2009-08-07  H.J. Lu  <hongjiu.lu@intel.com>
 
        * sysdeps/i386/i686/multiarch/strlen.S (ENTRY): Add the missing "; \".
index 8286d03..daeebe1 100644 (file)
@@ -86,6 +86,8 @@ STRCSPN_SSE42 (const char *s, const char *a)
 
   const char *aligned;
   __m128i mask;
+  /* Fake initialization.  gcc otherwise will warn.  */
+  asm ("" : "=xm" (mask));
   int offset = (int) ((size_t) a & 15);
   if (offset != 0)
     {