| Article: |
When Linux Runs Out of Memory | |
| Subject: | Source needs some changes to compile | |
| Date: | 2006-12-01 03:50:13 | |
| From: | mulyadi_santosa | |
|
Response to: Source needs some changes to compile
|
||
|
Hi...
|
||
Showing messages 1 through 2 of 2.
-
Source needs some changes to compile
2007-06-21 16:33:31 deStilaDo [View]
-
Source needs some changes to compile
2006-12-01 07:55:22 nathan@nathanpowell.org [View]
No the OP is right. IANACP but for it to compile with GCC 4.1.2 I had to make the same changes.



Even if it's accepted by any compiler, it shouldn't.
The grammar of the C language states that parenthesis are mandatory part of "if statement", formally know as "selection_statement":
selection_statement: in statement
IF '(' expression ')' statement
| IF '(' expression ')' statement ELSE statement
http://www.vendian.org/mncharity/ccode/grammar/html/degener_symb.txt.html#selection_statement