]> granicus.if.org Git - curl/commitdiff
lib517: make variable static to avoid compiler warning
authorDaniel Stenberg <daniel@haxx.se>
Fri, 26 Jan 2018 15:50:32 +0000 (16:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 26 Jan 2018 15:51:08 +0000 (16:51 +0100)
... with clang on macos

tests/libtest/lib517.c

index a30c2d5ce3f4d87f9a0200f6e8c43d2f4debc3e5..e7451907c062554c136f6609e405a732b6613ffb 100644 (file)
@@ -28,7 +28,7 @@ struct dcheck {
   time_t output;
 };
 
-struct dcheck dates[] = {
+static struct dcheck dates[] = {
   {"Sun, 06 Nov 1994 08:49:37 GMT", 784111777 },
   {"Sunday, 06-Nov-94 08:49:37 GMT", 784111777 },
   {"Sun Nov  6 08:49:37 1994", 784111777 },