Skip to content

Compilation warning: ReadTimestamps -Wmisleading-indentation #18

@janhn

Description

@janhn

Compilation with gcc gives a warning here:

database.c: In function 'ReadTimestamps':
database.c:268:8: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
        if (ptr && (*ptr == 0 || *ptr == '\n'))
        ^~
database.c:271:9: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the 'if'
         tm.tm_isdst = -1;
         ^~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions