intentional_compile_warning.cxx 235 B

1234567891011
  1. #include <stdio.h>
  2. int main(int argc, const char* argv[])
  3. {
  4. unsigned int i =
  5. 0; // "i<argc" should produce a "signed/unsigned comparison" warning
  6. for (; i < argc; ++i) {
  7. fprintf(stdout, "%s\n", argv[i]);
  8. }
  9. return 0;
  10. }