{"action":"opened","issue":{"url":"https://api.github.com/repos/KDAB/GammaRay/issues/119","labels_url":"https://api.github.com/repos/KDAB/GammaRay/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/KDAB/GammaRay/issues/119/comments","events_url":"https://api.github.com/repos/KDAB/GammaRay/issues/119/events","html_url":"https://github.com/KDAB/GammaRay/issues/119","id":67337882,"number":119,"title":"Compiling Release win322 against qt 5.5.0 git fails in modeltest.cpp","user":{"login":"rodion67","id":11755718,"avatar_url":"https://avatars.githubusercontent.com/u/11755718?v=3","gravatar_id":"","url":"https://api.github.com/users/rodion67","html_url":"https://github.com/rodion67","followers_url":"https://api.github.com/users/rodion67/followers","following_url":"https://api.github.com/users/rodion67/following{/other_user}","gists_url":"https://api.github.com/users/rodion67/gists{/gist_id}","starred_url":"https://api.github.com/users/rodion67/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rodion67/subscriptions","organizations_url":"https://api.github.com/users/rodion67/orgs","repos_url":"https://api.github.com/users/rodion67/repos","events_url":"https://api.github.com/users/rodion67/events{/privacy}","received_events_url":"https://api.github.com/users/rodion67/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T11:08:03Z","updated_at":"2015-04-09T11:08:03Z","closed_at":null,"body":"Hi,\r\nthe problem is code like this:\r\n#if !defined(NDEBUG)\r\n        int state = checkStateVariant.toInt();\r\n#endif\r\n        Q_ASSERT ( state == Qt::Unchecked ||\r\n                   state == Qt::PartiallyChecked ||\r\n                   state == Qt::Checked );\r\n\r\nas Q_ASSERT macro has been change so that the code in () is also compiled in release , but not active, will be removed by optimizer.\r\nerror message is tests/modeltest.cpp(498) : error C2065: 'state' : undeclared identifier\r\nSolution is to change this like this:\r\n#if !defined(NDEBUG)\r\n        int state = checkStateVariant.toInt();\r\n        Q_ASSERT ( state == Qt::Unchecked ||\r\n                   state == Qt::PartiallyChecked ||\r\n                   state == Qt::Checked );\r\n#endif\r\n\r\nRegards,\r\nGunnar"}}