On 20 Oct 2017 17:35, Bruno Haible wrote:
Hi,
Ben RUBSON wrote:
Hello Bruno,
Please write to bug-gettext@gnu.org, not to me personally.
Sorry for this, actually your mail is in the autosprintf header :|
But thank you for the tip !
I am using your autosprintf library, it works perfectly, thank you very
much.
I included it into a C++ program, however clang-tidy complains with the
following :
warning: do not define a C-style variadic function; consider using a function
parameter pack or currying instead [cert-dcl50-cpp]
autosprintf::autosprintf(const char *format, ...) {
^
I'm not really sure how to tranform autosprintf to make it fully C++
compliant.
May I then ask you, do you have an idea how to do this ?
A web search for 'cert-dcl50-cpp' leads me to [1] -> [2].
Note that gettext is explicitly mentioned in the comments of [2].
I'll then try to deal with this, many thanks !
[1] https://clang.llvm.org/extra/clang-tidy/checks/cert-dcl50-cpp.html
[2]
https://www.securecoding.cert.org/confluence/display/cplusplus/DCL50-CPP.+Do+not+define+a+C-style+variadic+function