Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-4513

Error when building with gcc 6.1.1 with luajit

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.2.0
    • 6.2.1, 7.0.0
    • Lua
    • None

    Description

      Errors that I am seeing:

      lj_cparse.c: In function 'cp_next_':
      lj_cparse.c:313:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
             if (cp_get(cp) != '|') return '|'; cp_get(cp); return CTOK_OROR;
             ^~
      lj_cparse.c:313:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             if (cp_get(cp) != '|') return '|'; cp_get(cp); return CTOK_OROR;
                                                ^~~~~~
      lj_cparse.c:315:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
             if (cp_get(cp) != '&') return '&'; cp_get(cp); return CTOK_ANDAND;
             ^~
      lj_cparse.c:315:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             if (cp_get(cp) != '&') return '&'; cp_get(cp); return CTOK_ANDAND;
                                                ^~~~~~
      lj_cparse.c:317:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
             if (cp_get(cp) != '=') return '='; cp_get(cp); return CTOK_EQ;
             ^~
      lj_cparse.c:317:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             if (cp_get(cp) != '=') return '='; cp_get(cp); return CTOK_EQ;
                                                ^~~~~~
      lj_cparse.c:319:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
             if (cp_get(cp) != '=') return '!'; cp_get(cp); return CTOK_NE;
             ^~
      lj_cparse.c:319:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             if (cp_get(cp) != '=') return '!'; cp_get(cp); return CTOK_NE;
                                                ^~~~~~
      lj_cparse.c:329:7: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
             if (cp_get(cp) != '>') return '-'; cp_get(cp); return CTOK_DEREF;
             ^~
      lj_cparse.c:329:42: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
             if (cp_get(cp) != '>') return '-'; cp_get(cp); return CTOK_DEREF;
                                                ^~~~~~
      HOSTCC    host/buildvm.o
      In file included from host/buildvm.c:59:0:
      ./../dynasm/dasm_x86.h: In function 'dasm_put':
      ./../dynasm/dasm_x86.h:207:2: error: this 'if' clause does not guard... [-Werror=misleading-indentation]
        if (*p++ == 1 && *p == DASM_DISP) mrm = n; continue;
        ^~
      ./../dynasm/dasm_x86.h:207:45: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
        if (*p++ == 1 && *p == DASM_DISP) mrm = n; continue;
                                                   ^~~~~~~~
      

      Attachments

        Activity

          People

            bcall Bryan Call
            bcall Bryan Call
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 40m
                1h 40m