Compiler flags -Wall and -Werror are only used in the debug mode;
Change vsprintf to vsnprintf, otherwise when -Werror is given, we got multiple errors such as
/hiop/src/Utils/hiopLogger.cpp:147:3: error: 'vsprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use vsnprintf(3) instead. [-Werror,-Wdeprecated-declarations]
vsprintf(buff_,format, args);
-Wall
and-Werror
are only used in the debug mode;vsprintf
tovsnprintf
, otherwise when-Werror
is given, we got multiple errors such as@jaelynlitz @cameronrutherford @cnpetra