Menu

#1233 MacOS logmanager.h "warning: passing an object of reference type to 'va_start' has undefined behavior"

Undefined
open
nobody
None
Bug_Report
2022-03-12
2022-03-12
No

On MacOS building generates allof of the following warnings:

In file included from /Users/andy/Code/CodeBLocks_Private_Experimental/src/plugins/clangd_client/src/ClangLocator.cpp:19:
/Users/andy/Code/CodeBLocks_Private_Experimental/src/include/logmanager.h:40:28: warning: passing an object of reference type to 'va_start' has undefined behavior [-Wvarargs]
        va_start(arg_list, msg);
                           ^
/Users/andy/Code/CodeBLocks_Private_Experimental/src/include/logmanager.h:37:39: note: parameter of type 'const wxString &' is declared here
    inline wxString F(const wxString &msg, ...)
                                      ^
In file included from /Users/andy/Code/CodeBLocks_Private_Experimental/src/plugins/clangd_client/src/codecompletion/ccoptionsdlg.cpp:30:
/Users/andy/Code/CodeBLocks_Private_Experimental/src/include/logmanager.h:40:28: warning: passing an object of reference type to 'va_start' has undefined behavior [-Wvarargs]
        va_start(arg_list, msg);
                           ^

There are so many of them that it is slowing me down fixing plugin build issues I am encountering with the workspace/project files.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.