forked from enlightenment/efl
forcibly shut up about loose indentation!
SVN revision: 12399
This commit is contained in:
parent
96c09fd010
commit
f778cf70fb
|
@ -3245,9 +3245,11 @@ statement(int *lastindent, int allow_decl)
|
|||
/* lex() has set stmtindent */
|
||||
if (lastindent != NULL && tok != tLABEL)
|
||||
{
|
||||
#if 0
|
||||
if (*lastindent >= 0 && *lastindent != stmtindent &&
|
||||
!indent_nowarn && sc_tabsize > 0)
|
||||
error(217); /* loose indentation */
|
||||
#endif
|
||||
*lastindent = stmtindent;
|
||||
indent_nowarn = TRUE; /* if warning was blocked, re-enable it */
|
||||
} /* if */
|
||||
|
@ -3571,8 +3573,10 @@ doif(void)
|
|||
{
|
||||
/* to avoid the "dangling else" error, we want a warning if the "else"
|
||||
* has a lower indent than the matching "if" */
|
||||
#if 0
|
||||
if (stmtindent < ifindent && sc_tabsize > 0)
|
||||
error(217); /* loose indentation */
|
||||
#endif
|
||||
flab2 = getlabel();
|
||||
if ((lastst != tRETURN) && (lastst != tGOTO))
|
||||
jumplabel(flab2);
|
||||
|
|
Loading…
Reference in New Issue