Ver Fonte

Merge topic 'CheckTypeSize-decl-warning'

0adb0e0178 CheckTypeSize: Fix with clang '-Werror,-Wmissing-variable-declarations'

Acked-by: Kitware Robot <[email protected]>
Merge-request: !3112
Brad King há 6 anos atrás
pai
commit
6bbc82b4b3
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      Modules/CheckTypeSize.c.in

+ 1 - 1
Modules/CheckTypeSize.c.in

@@ -18,7 +18,7 @@
 #endif
 
 #define SIZE (sizeof(@type@))
-char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
+static char info_size[] =  {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
   ('0' + ((SIZE / 10000)%10)),
   ('0' + ((SIZE / 1000)%10)),
   ('0' + ((SIZE / 100)%10)),