forcibly shut up about loose indentation!
authorCarsten Haitzler <raster@rasterman.com>
Wed, 8 Dec 2004 06:05:23 +0000 (06:05 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 8 Dec 2004 06:05:23 +0000 (06:05 +0000)
SVN revision: 12399

legacy/embryo/src/bin/embryo_cc_sc1.c

index 84ccdf9..8d29b1c 100644 (file)
@@ -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);