HomeFreeBSD

lang/compute-runtime: untabify and silence -Wformat-security in the port's patch

Description

lang/compute-runtime: untabify and silence -Wformat-security in the port's patch

In file included from runtime/os_interface/linux/drm_memory_manager.cpp:8:
In file included from runtime/os_interface/linux/drm_memory_manager.h:9:
In file included from runtime/memory_manager/memory_manager.h:11:
In file included from core/helpers/aligned_memory.h:11:
runtime/os_interface/debug_settings_manager.h:35:17: warning: format string is not a string literal (potentially insecure) [-Wformat-security]

fprintf(std::forward<Args>(args)...);
        ^~~~~~~~~~~~~~~~~~~~~~~~

runtime/os_interface/linux/drm_memory_manager.cpp:148:21: note: in instantiation of function template specialization 'NEO::printDebugString<__sFILE *&, char const (&)[80]>' requested here

printDebugString(true, stderr, "ioctl(I915_GEM_USERPTR) failed. Try running as root but expect poor stability.\n");
^

runtime/os_interface/debug_settings_manager.h:35:17: note: treat the string as an argument to avoid this

fprintf(std::forward<Args>(args)...);
        ^
        "%s",

Details

Provenance
jbeichAuthored on
Parents
rP519569: lang/compute-runtime: unbreak build with ninja
Branches
Unknown
Tags
Unknown