Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
jimrandomh
on Jan 10, 2016
|
parent
|
context
|
favorite
| on:
GCC 6 Will Warn You About Misleading Code Indentat...
This doesn't seem like a realistic mistake to me. The printf is just at the wrong indent level; this is the same mistake as:
for(i=0; i<imax; i++) printf("i=%i\n",i) { //... }
Which also compiles and which is wrong in the same way. I don't recall ever having made or having seen this.
S4M
on Jan 10, 2016
[–]
Well, not really, because in the example you just gave, you would put the printf right between the braces as it should be. In the case originally discussed, you have no braces so you would have to add them, and that
can
be forgotten.
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: