payload: {"action":"created","issue":{"url":"https://api.github.com/repos/zeromq/libzmq/issues/3586","repository_url":"https://api.github.com/repos/zeromq/libzmq","labels_url":"https://api.github.com/repos/zeromq/libzmq/issues/3586/labels{/name}","comments_url":"https://api.github.com/repos/zeromq/libzmq/issues/3586/comments","events_url":"https://api.github.com/repos/zeromq/libzmq/issues/3586/events","html_url":"https://github.com/zeromq/libzmq/issues/3586","id":469502986,"node_id":"MDU6SXNzdWU0Njk1MDI5ODY=","number":3586,"title":"Error when compiling with MinGW due to usage of MS-specific __except keyword","user":{"login":"Rush","id":115926,"node_id":"MDQ6VXNlcjExNTkyNg==","avatar_url":"https://avatars2.githubusercontent.com/u/115926?v=4","gravatar_id":"","url":"https://api.github.com/users/Rush","html_url":"https://github.com/Rush","followers_url":"https://api.github.com/users/Rush/followers","following_url":"https://api.github.com/users/Rush/following{/other_user}","gists_url":"https://api.github.com/users/Rush/gists{/gist_id}","starred_url":"https://api.github.com/users/Rush/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Rush/subscriptions","organizations_url":"https://api.github.com/users/Rush/orgs","repos_url":"https://api.github.com/users/Rush/repos","events_url":"https://api.github.com/users/Rush/events{/privacy}","received_events_url":"https://api.github.com/users/Rush/received_events","type":"User","site_admin":false},"labels":[{"id":164697224,"node_id":"MDU6TGFiZWwxNjQ2OTcyMjQ=","url":"https://api.github.com/repos/zeromq/libzmq/labels/Area%20(Build/Compilation)","name":"Area (Build/Compilation)","color":"fbca04","default":false},{"id":361102983,"node_id":"MDU6TGFiZWwzNjExMDI5ODM=","url":"https://api.github.com/repos/zeromq/libzmq/labels/Platform%20(windows/mingw)","name":"Platform (windows/mingw)","color":"bfd4f2","default":false},{"id":933443603,"node_id":"MDU6TGFiZWw5MzM0NDM2MDM=","url":"https://api.github.com/repos/zeromq/libzmq/labels/Regression","name":"Regression","color":"efb1ed","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2019-07-17T23:52:20Z","updated_at":"2019-08-09T20:58:20Z","closed_at":"2019-07-30T12:42:19Z","author_association":"NONE","body":"*Please use this template for reporting suspected bugs or requests for help.*\r\n\r\n# Issue description\r\n\r\nTrying to compile libzmq with MinGW - the issue is fairly obvious. `__except` should not have gone through a code review as it's a Microsoft specific extension.\r\n\r\nhttps://github.com/zeromq/libzmq/blame/aac3cd4d93d288b29b71806c2478a947d66238b6/src/thread.cpp#L136\r\n\r\n```\r\nsrc/thread.cpp:128: warning: ignoring #pragma warning  [-Wunknown-pragmas]\r\n #pragma warning(push)                                                                                                                                                                                                                                       \r\n                                                                                                                                                                                                                                                             \r\nsrc/thread.cpp:129: warning: ignoring #pragma warning  [-Wunknown-pragmas]                                                                                                                                                                                   \r\n #pragma warning(disable : 6320 6322)                                                                                                                                                                                                                        \r\n                                                                                                                                                                                                                                                             \r\nsrc/thread.cpp:138: warning: ignoring #pragma warning  [-Wunknown-pragmas]                                                                                                                                                                                   \r\n #pragma warning(pop)                                                                                                                                                                                                                                        \r\n                                                                                                                                                                                                                                                             \r\nsrc/thread.cpp: In member function 'void zmq::thread_t::applyThreadName()':                                                                                                                                                                                  \r\nsrc/thread.cpp:136:5: error: expected 'catch' before '__except'                                                                                                                                                                                              \r\n     __except (EXCEPTION_CONTINUE_EXECUTION) {                                                                                                                                                                                                               \r\n     ^~~~~~~~                                                                                                                                                                                                                                                \r\nsrc/thread.cpp:136:5: error: expected '(' before '__except'                                                                                                                                                                                                  \r\n     __except (EXCEPTION_CONTINUE_EXECUTION) {                                                                                                                                                                                                               \r\n     ^~~~~~~~                                                                                                                                                                                                                                                \r\n     (                                                                                                                                                                                                                                                       \r\nsrc/thread.cpp:136:5: error: expected type-specifier before '__except'                                                                                                                                                                                       \r\n     __except (EXCEPTION_CONTINUE_EXECUTION) {                                                                                                                                                                                                               \r\n     ^~~~~~~~                                                                                                                                                                                                                                                \r\nsrc/thread.cpp:136:13: error: expected ')' before '(' token                                                                                                                                                                                                  \r\n     __except (EXCEPTION_CONTINUE_EXECUTION) {                                                                                                                                                                                                               \r\n     ~~~~~~~~^~                                                                                                                                                                                                                                              \r\n             )                                                                                                                                                                                                                                               \r\nsrc/thread.cpp:136:14: error: expected '{' before '(' token                                                                                                                                                                                                  \r\n     __except (EXCEPTION_CONTINUE_EXECUTION) {                                                                                                                                                                                                               \r\n              ^                                                                                                                                                                                                                                              \r\nsrc/thread.cpp:136:44: error: expected ';' before '{' token                                                                                                                                                                                                  \r\n     __except (EXCEPTION_CONTINUE_EXECUTION) {                                                                                                                                                                                                               \r\n                                            ^~                                                                                                                                                                                                               \r\n                                            ;                          \r\n```\r\n\r\n\r\n# Environment\r\n\r\n* libzmq version (commit hash if unreleased): \r\n* OS: Docker / openSUSE Leap 15.1\r\n\r\n# Minimal test code / Steps to reproduce the issue\r\nCan provide a `Dockerfile` upon request."},"comment":{"url":"https://api.github.com/repos/zeromq/libzmq/issues/comments/520061363","html_url":"https://github.com/zeromq/libzmq/issues/3586#issuecomment-520061363","issue_url":"https://api.github.com/repos/zeromq/libzmq/issues/3586","id":520061363,"node_id":"MDEyOklzc3VlQ29tbWVudDUyMDA2MTM2Mw==","user":{"login":"TomzBench","id":20780378,"node_id":"MDQ6VXNlcjIwNzgwMzc4","avatar_url":"https://avatars2.githubusercontent.com/u/20780378?v=4","gravatar_id":"","url":"https://api.github.com/users/TomzBench","html_url":"https://github.com/TomzBench","followers_url":"https://api.github.com/users/TomzBench/followers","following_url":"https://api.github.com/users/TomzBench/following{/other_user}","gists_url":"https://api.github.com/users/TomzBench/gists{/gist_id}","starred_url":"https://api.github.com/users/TomzBench/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomzBench/subscriptions","organizations_url":"https://api.github.com/users/TomzBench/orgs","repos_url":"https://api.github.com/users/TomzBench/repos","events_url":"https://api.github.com/users/TomzBench/events{/privacy}","received_events_url":"https://api.github.com/users/TomzBench/received_events","type":"User","site_admin":false},"created_at":"2019-08-09T20:58:20Z","updated_at":"2019-08-09T20:58:20Z","author_association":"NONE","body":"Not sure if this is related. But I get this error when on \"latest_release\" branch. So when switching to master and compiling with mingw I get this error...\r\n\r\n\r\n`C:\\...\\libzmq\\src\\thread.cpp:150: error: invalid conversion from 'int (*)(EXCEPTION_RECORD*, void*, CONTEXT*, void*) {aka int (*)(_EXCEPTION_RECORD*, void*, _CONTEXT*, void*)}' to 'void*' [-fpermissive]\r\n     rec.Handler = continue_execution;\r\n                   ^~~~~~~~~~~~~~~~~~`"}}
other: {"actor":{"display_login":"TomzBench"}}