DavidSpickett wrote:

FYI on our Windows on Arm (aka AArch64) bot we got this warning:
```
[4840/6117] Building CXX object 
tools\lldb\source\Plugins\DynamicLoader\FreeBSD-Kernel\CMakeFiles\lldbPluginDynamicLoaderFreeBSDKernel.dir\DynamicLoaderFreeBSDKernel.cpp.obj
C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\source\Plugins\DynamicLoader\FreeBSD-Kernel\DynamicLoaderFreeBSDKernel.cpp(540,7):
 warning: format specifies type 'unsigned long' but the argument has type 
'std::vector<DynamicLoaderFreeBSDKernel::KModImageInfo>::size_type' (aka 
'unsigned long long') [-Wformat]
      linker_files_list.size());
      ^~~~~~~~~~~~~~~~~~~~~~~~
C:\Users\tcwg\llvm-worker\lldb-aarch64-windows\llvm-project\lldb\include\lldb/Utility/Log.h(353,48):
 note: expanded from macro 'LLDB_LOGF'
      log_private->Formatf(__FILE__, __func__, __VA_ARGS__);                   \
                                               ^~~~~~~~~~~
1 warning generated.
```
And this one on the 32 bit Arm Linux bot:
```
../llvm-project/lldb/source/Plugins/DynamicLoader/FreeBSD-Kernel/DynamicLoaderFreeBSDKernel.cpp:540:7:
 warning: format specifies type 'unsigned long' but the argument has type 
'size_type' (aka 'unsigned int') [-Wformat]
1 warning generated.
```
AArch64 Linux was fine. So I assume each one is using one of `unsigned int`, 
`unsigned long` or `unsigned long long` for its size types.

There is probably a way to print that in a portable way but I don't recall it 
at the moment.

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

Reply via email to