{"action":"closed","issue":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/765","repository_url":"https://api.github.com/repos/Andersbakken/rtags","labels_url":"https://api.github.com/repos/Andersbakken/rtags/issues/765/labels{/name}","comments_url":"https://api.github.com/repos/Andersbakken/rtags/issues/765/comments","events_url":"https://api.github.com/repos/Andersbakken/rtags/issues/765/events","html_url":"https://github.com/Andersbakken/rtags/issues/765","id":170360779,"number":765,"title":"Unwanted -Wswitch causes fatal errors","user":{"login":"azuk","id":746800,"avatar_url":"https://avatars.githubusercontent.com/u/746800?v=3","gravatar_id":"","url":"https://api.github.com/users/azuk","html_url":"https://github.com/azuk","followers_url":"https://api.github.com/users/azuk/followers","following_url":"https://api.github.com/users/azuk/following{/other_user}","gists_url":"https://api.github.com/users/azuk/gists{/gist_id}","starred_url":"https://api.github.com/users/azuk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/azuk/subscriptions","organizations_url":"https://api.github.com/users/azuk/orgs","repos_url":"https://api.github.com/users/azuk/repos","events_url":"https://api.github.com/users/azuk/events{/privacy}","received_events_url":"https://api.github.com/users/azuk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-08-10T08:29:02Z","updated_at":"2016-08-13T03:10:04Z","closed_at":"2016-08-13T03:10:04Z","body":"Consider the following example:\r\n```\r\nenum Hip\r\n{\r\n    HOP,\r\n    HAP,\r\n    HEP\r\n};\r\n\r\nint main(int argc, char** argv)\r\n{\r\n    Hip jee = HOP;\r\n\r\n    switch (jee)\r\n    {\r\n    case HOP:\r\n        return 1;\r\n    }\r\n    return 0;\r\n}\r\n\r\n/* Local Variables: */\r\n/* compile-command: \"g++ -Werror -Wfatal-errors -march=i686 -m32 -std=c++11 -o rtags-revtest rtags-revtest.cpp\" */\r\n/* End: */\r\n```\r\ng++ compiles that file without problems. But I get\r\n```\r\n00:07:09:929: Output from /.../rtags-revtest.cpp:\r\n/.../rtags-revtest.cpp:12:13: fatal error: enumeration values 'HAP' and 'HEP' not handled in switch [-Wswitch]\r\n```\r\nto rtags log.\r\n\r\nI'm running rdm with `--no-Wall` option just in case, although it seems that should not be necessary because `IndexerJob::encode()` appears to drop `-Wall` if `-Werror` is used.\r\n\r\nI get many of those fatal errors in my actual project and I'm wondering if they cause rtags not to parse parts of the code that would have to parsed for me to not see random problems with `rtags-find-references-at-point` etc."}}
{"actor":{"display_login":"Andersbakken"}}