#include <stdio.h>
struct __attribute__ ((unused)) St
{
int x;
};
typedef __attribute__ ((unused)) struct St ArrayOneSt[1];
void func1()
{
struct St s; // no warning, ok
}
void func2()
{
ArrayOneSt s; // Why warning???
}
int main() {
func1();
func2();
return 0;
}
I2luY2x1ZGUgPHN0ZGlvLmg+CgpzdHJ1Y3QgX19hdHRyaWJ1dGVfXyAoKHVudXNlZCkpIFN0IAp7IAogICAgaW50IHg7IAp9OwoKdHlwZWRlZiBfX2F0dHJpYnV0ZV9fICgodW51c2VkKSkgc3RydWN0IFN0IEFycmF5T25lU3RbMV07Cgp2b2lkIGZ1bmMxKCkKewogIHN0cnVjdCBTdCBzOyAgICAgIC8vIG5vIHdhcm5pbmcsIG9rCn0KCnZvaWQgZnVuYzIoKQp7IAogIEFycmF5T25lU3QgczsgICAvLyBXaHkgd2FybmluZz8/Pwp9CgppbnQgbWFpbigpIHsKICAgIGZ1bmMxKCk7CiAgICBmdW5jMigpOwogICAgcmV0dXJuIDA7Cn0K