[ create a new paste ] login | about

Link: http://codepad.org/2bicoBiH    [ raw code | fork | 1 comment ]

RogerPate - Plain Text, pasted on Feb 26:
1
2
3
4
5
6
7
8
9
10
11
$ cat sleepwarn.cpp && g++ -Wall -Wextra sleepwarn.cpp 
#include <iostream>
int main() {
  int i = 0;
  while (i++ < 10); {
    std::cout << i;
  }
}
sleepwarn.cpp: In function ‘int main()’:
sleepwarn.cpp:4: warning: suggest a space before ‘;’ or explicit braces around empty body in ‘while’ statement



Create a new paste based on this one


Comments:
posted by RogerPate on Feb 26
reply