work around gcc 4.8's generation of self-referential mem* functions at -O3
[oweals/musl.git] / src / misc / wordexp.c
index 15adddbe381e14cb6e70b7db6f6502e84111deb6..617706e50d99c18f10eb9a85d836f6100abe63bc 100644 (file)
@@ -147,7 +147,7 @@ static int do_wordexp(const char *s, wordexp_t *we, int flags)
        return err;
 }
 
-int wordexp(const char *s, wordexp_t *we, int flags)
+int wordexp(const char *restrict s, wordexp_t *restrict we, int flags)
 {
        int r, cs;
        pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs);