With SWIG 3.0.12 I get the following compiler warnings when compiling LLDB:
tools/lldb/scripts/LLDBWrapPython.cpp:23699:52: warning: format string is not a string literal (potentially insecure) [-Wformat-security]
result = (int)(arg1)->SetErrorStringWithFormat((char const *)arg2);
^ ~~~~
tools/lldb/scripts/LLDBWrapPython.cpp:23699:52: note: treat the string as an argument to avoid this
result = (int)(arg1)->SetErrorStringWithFormat((char const *)arg2);
^
"%s",
tools/lldb/scripts/LLDBWrapPython.cpp:52418:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < arg3; i++) {
~ ^ ~~~~
tools/lldb/scripts/LLDBWrapPython.cpp:52510:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < arg3; i++) {
~ ^ ~~~~
tools/lldb/scripts/LLDBWrapPython.cpp:52611:21: warning: comparison of integers of different signs: 'int' and 'uint32_t' (aka 'unsigned int') [-Wsign-compare]
for (i = 0; i < arg3; i++) {
~ ^ ~~~~As the code is anyway generated we probably should disable those two warnings for the source file.