fork download
  1. #include <stdio.h>
  2.  
  3. struct __attribute__ ((unused)) St
  4. {
  5. int x;
  6. };
  7.  
  8. typedef __attribute__ ((unused)) struct St ArrayOneSt[1];
  9.  
  10. void func1()
  11. {
  12. struct St s; // no warning, ok
  13. }
  14.  
  15. void func2()
  16. {
  17. ArrayOneSt s; // Why warning???
  18. }
  19.  
  20. int main() {
  21. func1();
  22. func2();
  23. return 0;
  24. }
  25.  
Success #stdin #stdout 0s 9296KB
stdin
Standard input is empty
stdout
Standard output is empty