Skip to content

misleading indentation warning #85

@ablaette

Description

@ablaette

This is a warning I see compiling with clang 14.0.6 (Debian, R-devel)

clang-14 -c  -o lex.yy.o -O2 -Wall -fPIC   -DUSE_TERMCAP -DUSE_READLINE -DCOMPILE_DATE=\""Wed Jun 28 08:30:50 PM UTC 2023"\" -DCWB_VERSION=\"3.4.33\" -I/usr/include/glib-2.0 -I/usr/lib/aarch64-linux-gnu/glib-2.0/include     lex.yy.c
lex.yy.c:1398:13: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
            if ( ! (yy_state_buf) )
            ^
lex.yy.c:1396:9: note: previous statement is here
        if ( ! (yy_state_buf) )
        ^
lex.yy.c:2456:3: warning: misleading indentation; statement is not part of the previous 'if' [-Wmisleading-indentation]
                return yy_is_jam ? 0 : yy_current_state;
                ^
lex.yy.c:2453:2: note: previous statement is here
        if ( ! yy_is_jam )
        ^
2 warnings generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions