util: fix in-class initialization of static member
authorThomas Helland <thomashelland90@gmail.com>
Wed, 27 Sep 2017 19:24:06 +0000 (21:24 +0200)
committerThomas Helland <thomashelland90@gmail.com>
Thu, 28 Sep 2017 21:22:07 +0000 (23:22 +0200)
commitce09364d4ec527ceee5be8bf4a08fb27cd2bf152
tree92f4bdccc66424b4494a9a478ad33d43bee7ba81
parenta35f25068ac71d8f986807cd5fa59e0e7a1ad34d
util: fix in-class initialization of static member

Fix a compile error with G++ 4.4

string_buffer_test.cpp:43: error: ISO C++ forbids initialization of
member ‘str1’
string_buffer_test.cpp:43: error: making ‘str1’ static
string_buffer_test.cpp:43: error: invalid in-class initialization of
static data member of non-integral type ‘const char*’

Tested-by: Vinson Lee <vlee at freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103002
src/util/tests/string_buffer/string_buffer_test.cpp