diff options
author | Heikki Vatiainen <hvn@radiatorsoftware.com> | 2023-01-30 22:43:29 +0200 |
---|---|---|
committer | Heikki Vatiainen <hvn@radiatorsoftware.com> | 2023-12-10 14:48:07 +0200 |
commit | eb097e9abf3c82f78472002e90e4fe8f3d8d63a9 (patch) | |
tree | e5765d6cd328a9038943af699c33d6840ba58243 | |
parent | 51e0367bc903b0ba5e1f49cb204bcc4ea2368f26 (diff) |
GH-425 Avoid C++ compiler warning about conversion from string literal to 'char *.
In C string literals do not have the 'const' qualifier but in C++ they do.
Avoid C++ compiler warnings by changing our TRACE() funciton definition to use
'const char *' instead of plain 'char *'. This is a useful change for C too
because they string passed to the function can be expected to be read-only.
-rw-r--r-- | SSLeay.xs | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -227,7 +227,7 @@ which conflicts with perls #define PR4(s,t,u,v) #endif -static void TRACE(int level,char *msg,...) { +static void TRACE(int level,const char *msg,...) { va_list args; SV *trace = get_sv("Net::SSLeay::trace",0); if (trace && SvIOK(trace) && SvIV(trace)>=level) { |