Build errors with GMock

Mark Kretschmann kretschmann at kde.org
Fri Dec 13 05:57:13 UTC 2013


Hey all,

lately I'm getting strange errors when building Git master with unit
tests. At first I thought it was just my configuration (GMock 1.6,
Clang), but now another user on IRC confirmed the same, but with GCC
and Clang 1.7. Complete compile log attached.

In file included from
/home/mark/Devel/src/amarok/tests/TestTrackOrganizer.cpp:28:
In file included from /home/mark/Devel/src/amarok/tests/mocks/MockTrack.h:20:
In file included from /usr/include/gmock/gmock.h:58:
In file included from /usr/include/gmock/gmock-actions.h:46:
/usr/include/gmock/internal/gmock-internal-utils.h:308:3: error: expected '}'
  kWarning = 1
  ^
/usr/include/kdebug.h:322:28: note: expanded from macro 'kWarning'
# define kWarning    KDebug(QtWarningMsg, __FILE__, __LINE__, Q_FUNC_INFO)
                           ^
/usr/include/gmock/internal/gmock-internal-utils.h:306:18: note: to
match this '{'
enum LogSeverity {
                 ^
-- 
Mark Kretschmann
Amarok Developer
Fellow of the Free Software Foundation Europe
http://amarok.kde.org - http://fsfe.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: build.log
Type: text/x-log
Size: 114456 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/amarok-devel/attachments/20131213/42572adc/attachment-0001.log>


More information about the Amarok-devel mailing list