1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 16:33:32 -05:00

fix build error on gcc 9.3.0

FileLogWriter.h:34:41: error: array used as initializer
This commit is contained in:
esrrhs
2021-04-04 12:42:14 +08:00
parent 277352d072
commit 866e97efcf
2 changed files with 3 additions and 3 deletions

View File

@@ -42,9 +42,9 @@ public:
private:
# ifdef XMRIG_OS_WIN
char m_endl[3] = "\r\n";
const char m_endl[3] = {'\r', '\n', 0};
# else
char m_endl[2] = "\n";
const char m_endl[2] = {'\n', 0};
# endif
int m_file = -1;