Skip to content

Compile warning on architectures that are not x86 #1939

@tasleson

Description

@tasleson
  • What is the issue you have?

Compiling library results in a compiler error warning which using the latest compilers on non-x86 architectures using the gcc compiler included in fedora 32 aka. rawhide.

  • Please describe the steps to reproduce the issue. Can you provide a small but working code example?

Simply try to compile the library.

  • What is the expected behavior?

Compile success

  • And what is the actual behavior instead?

Compile error warning

./json.hpp:22700:42:   required from here
./json.hpp:8494:24: error: comparison is always true due to limited range of data type [-Werror=type-limits]
 8494 |             if ('\x00' <= c and c <= '\x1F')
      |                 ~~~~~~~^~~~

Not listed on the supported compilers. Fedora rawhide, which I believe is using GCC 10.0.1.

  • Did you use a released version of the library or the version from the develop branch?

Used latest release.

I can for x86, but not easily for other architectures at the moment.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions