{"action":"created","issue":{"url":"https://api.github.com/repos/BVLC/caffe/issues/3365","labels_url":"https://api.github.com/repos/BVLC/caffe/issues/3365/labels{/name}","comments_url":"https://api.github.com/repos/BVLC/caffe/issues/3365/comments","events_url":"https://api.github.com/repos/BVLC/caffe/issues/3365/events","html_url":"https://github.com/BVLC/caffe/pull/3365","id":118015818,"number":3365,"title":"Fix syntax inside switch","user":{"login":"eelstork","id":8023152,"avatar_url":"https://avatars.githubusercontent.com/u/8023152?v=3","gravatar_id":"","url":"https://api.github.com/users/eelstork","html_url":"https://github.com/eelstork","followers_url":"https://api.github.com/users/eelstork/followers","following_url":"https://api.github.com/users/eelstork/following{/other_user}","gists_url":"https://api.github.com/users/eelstork/gists{/gist_id}","starred_url":"https://api.github.com/users/eelstork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eelstork/subscriptions","organizations_url":"https://api.github.com/users/eelstork/orgs","repos_url":"https://api.github.com/users/eelstork/repos","events_url":"https://api.github.com/users/eelstork/events{/privacy}","received_events_url":"https://api.github.com/users/eelstork/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/BVLC/caffe/labels/style","name":"style","color":"fef2c0"},{"url":"https://api.github.com/repos/BVLC/caffe/labels/upstream%20issue","name":"upstream issue","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-20T10:58:23Z","updated_at":"2015-11-23T04:58:47Z","closed_at":"2015-11-23T04:58:47Z","pull_request":{"url":"https://api.github.com/repos/BVLC/caffe/pulls/3365","html_url":"https://github.com/BVLC/caffe/pull/3365","diff_url":"https://github.com/BVLC/caffe/pull/3365.diff","patch_url":"https://github.com/BVLC/caffe/pull/3365.patch"},"body":"glog macros inside `switch` cause the MSVC compiler to emit [error C2360](https://msdn.microsoft.com/en-us/library/61af7cx3.aspx). \r\nI find that GCC may be lenient in this case; standards compliance should we require that we manually define scopes to declare and initialise variables within `case` statements.\r\nAdditionally, `LOG(FATAL)` doesn't exonerate us from the requirement to `break` after `case`."},"comment":{"url":"https://api.github.com/repos/BVLC/caffe/issues/comments/158854100","html_url":"https://github.com/BVLC/caffe/pull/3365#issuecomment-158854100","issue_url":"https://api.github.com/repos/BVLC/caffe/issues/3365","id":158854100,"user":{"login":"eelstork","id":8023152,"avatar_url":"https://avatars.githubusercontent.com/u/8023152?v=3","gravatar_id":"","url":"https://api.github.com/users/eelstork","html_url":"https://github.com/eelstork","followers_url":"https://api.github.com/users/eelstork/followers","following_url":"https://api.github.com/users/eelstork/following{/other_user}","gists_url":"https://api.github.com/users/eelstork/gists{/gist_id}","starred_url":"https://api.github.com/users/eelstork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eelstork/subscriptions","organizations_url":"https://api.github.com/users/eelstork/orgs","repos_url":"https://api.github.com/users/eelstork/repos","events_url":"https://api.github.com/users/eelstork/events{/privacy}","received_events_url":"https://api.github.com/users/eelstork/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T04:58:47Z","updated_at":"2015-11-23T04:58:47Z","body":"[Raising an issue and suggesting a fix](https://github.com/google/glog/issues/72) to the glog team.\r\nIn the meantime, I have updated the proposed fix to reflect suggested improvements."}}