DavidSpickett wrote:

Only had time to build so far but:
```
/home/davspi01/work/open_source/llvm-project/lldb/tools/lldb-server/lldb-platform.cpp:
 In function ‘int main_platform(int, char**)’:
/home/davspi01/work/open_source/llvm-project/lldb/tools/lldb-server/lldb-platform.cpp:354:49:
 warning: comparison is always false due to limited range of data type 
[-Wtype-limits]
  354 |       if (port_offset < LOW_PORT || port_offset > HIGH_PORT) {
      |                                                 ^
/home/davspi01/work/open_source/llvm-project/lldb/tools/lldb-server/lldb-platform.cpp:372:41:
 warning: comparison is always false due to limited range of data type 
[-Wtype-limits]
  372 |       if (portnum < LOW_PORT || portnum > HIGH_PORT) {
      |                                         ^
[2796/2796] Linking CXX executable bin/lldb-server
```
I think this warning was already there, I'm just seeing it now in a clean 
build. `u` means `unsigned` and `portnum` is `uint16_t`.

https://github.com/llvm/llvm-project/pull/104238
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to