Merge pull request #78327 from bitsawer/fix_clang_string

Fix Clang `dev_mode` build const string conversion
This commit is contained in:
Rémi Verschelde 2023-06-16 16:54:01 +02:00
commit 9b4d367621
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -86,7 +86,7 @@ typedef int(__cdecl *NvAPI_DRS_SetSetting_t)(NvDRSSessionHandle, NvDRSProfileHan
typedef int(__cdecl *NvAPI_DRS_FindProfileByName_t)(NvDRSSessionHandle, NvAPI_UnicodeString, NvDRSProfileHandle *);
NvAPI_GetErrorMessage_t NvAPI_GetErrorMessage__;
static bool nvapi_err_check(char *msg, int status) {
static bool nvapi_err_check(const char *msg, int status) {
if (status != 0) {
if (OS::get_singleton()->is_stdout_verbose()) {
NvAPI_ShortString err_desc = { 0 };