Skip to content

Linux build fails with GCC [7.2.1] with [-Werror=type-limits] #595

@entd

Description

@entd

Library build fails on late version GCC:
~/src/casablanca/Release/src/uri/uri.cpp: In static member function ‘static utility::string_t web::uri::decode(const string_t&)’: ~/src/casablanca/Release/src/uri/uri.cpp:676:24: error: comparison is always false due to limited range of data type [-Werror=type-limits] else if (*iter > CHAR_MAX || *iter < 0)
While it could be supressed it imply deeper problem with code. For me comparing if 8 bit char is more than CHAR_MAX seems pointless too. Is it false positive?

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