foo.c: In function ‘main’:
foo.c:5:9: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
5 | for (i = 1;i++;);
| ^~~
foo.c:6:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
6 | {
| ^
foo.c:8:17: warning: this ‘for’ clause does not guard... [-Wmisleading-indentation]
8 | for (j = 1; j <= i / 2; j++);
| ^~~
foo.c:9:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the ‘for’
9 | {
| ^
foo.c:4:17: warning: unused variable ‘sum’ [-Wunused-variable]
4 | int i,j,sum=0;
| ^~~
foo.c:5:21: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations]
5 | for (i = 1;i++;);
| ~^~
foo.c:5:20: note: within this loop
5 | for (i = 1;i++;);
| ^