Signed/unsigned comparison warning on FreeBSD
This warning occurs almost constantly when building on FreeBSD:
../../../source/lib/os_path.h: In function 'std::string OsString(const OsPath&)':
../../../source/lib/os_path.h:48: warning: comparison between signed and unsigned integer expressions
I checked the system headers and UCHAR_MAX
is indeed defined as 0xffU
, but it seems wchar_t
is actually an int
on FreeBSD.
Change History
(4)
Description: |
modified (diff)
|
Description: |
modified (diff)
|
Owner: |
set to philip
|
Resolution: |
→ fixed
|
Status: |
new → closed
|
Milestone: |
Backlog → Alpha 9
|
I didn't pay attention to what the code is actually doing, it's checking if the
wchar_t
value could fit in anunsigned char
.