{"action":"created","issue":{"url":"https://api.github.com/repos/google/protobuf/issues/4276","repository_url":"https://api.github.com/repos/google/protobuf","labels_url":"https://api.github.com/repos/google/protobuf/issues/4276/labels{/name}","comments_url":"https://api.github.com/repos/google/protobuf/issues/4276/comments","events_url":"https://api.github.com/repos/google/protobuf/issues/4276/events","html_url":"https://github.com/google/protobuf/issues/4276","id":294299893,"number":4276,"title":"compiler error with protobuf 3.5.1for cpp ","user":{"login":"Hakunametata","id":19553669,"avatar_url":"https://avatars0.githubusercontent.com/u/19553669?v=4","gravatar_id":"","url":"https://api.github.com/users/Hakunametata","html_url":"https://github.com/Hakunametata","followers_url":"https://api.github.com/users/Hakunametata/followers","following_url":"https://api.github.com/users/Hakunametata/following{/other_user}","gists_url":"https://api.github.com/users/Hakunametata/gists{/gist_id}","starred_url":"https://api.github.com/users/Hakunametata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hakunametata/subscriptions","organizations_url":"https://api.github.com/users/Hakunametata/orgs","repos_url":"https://api.github.com/users/Hakunametata/repos","events_url":"https://api.github.com/users/Hakunametata/events{/privacy}","received_events_url":"https://api.github.com/users/Hakunametata/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-05T07:46:46Z","updated_at":"2018-02-05T08:37:16Z","closed_at":null,"author_association":"NONE","body":"there is error description \r\n\r\nError C4146： unary minus operator applied to unsigned type, result still unsigned   wire_format_lite.h\t863\t\r\n\r\nError C4146： unary minus operator applied to unsigned type, result still unsigned   wire_format_lite.h\t874\t\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/google/protobuf/issues/comments/363015131","html_url":"https://github.com/google/protobuf/issues/4276#issuecomment-363015131","issue_url":"https://api.github.com/repos/google/protobuf/issues/4276","id":363015131,"user":{"login":"s-bear","id":4016348,"avatar_url":"https://avatars3.githubusercontent.com/u/4016348?v=4","gravatar_id":"","url":"https://api.github.com/users/s-bear","html_url":"https://github.com/s-bear","followers_url":"https://api.github.com/users/s-bear/followers","following_url":"https://api.github.com/users/s-bear/following{/other_user}","gists_url":"https://api.github.com/users/s-bear/gists{/gist_id}","starred_url":"https://api.github.com/users/s-bear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s-bear/subscriptions","organizations_url":"https://api.github.com/users/s-bear/orgs","repos_url":"https://api.github.com/users/s-bear/repos","events_url":"https://api.github.com/users/s-bear/events{/privacy}","received_events_url":"https://api.github.com/users/s-bear/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T08:37:16Z","updated_at":"2018-02-05T08:37:16Z","author_association":"NONE","body":"I was just investigating this as well. Fresh install using `vcpkg install protobuf[zlib] protobuf[zlib]:x64-windows` as per [https://github.com/google/protobuf/blob/master/src/README.md#c-installation---windows](https://github.com/google/protobuf/blob/master/src/README.md#c-installation---windows).\r\n\r\nIt seems like this is known, to some extent: [https://github.com/google/protobuf/tree/master/cmake#notes-on-compiler-warnings](https://github.com/google/protobuf/tree/master/cmake#notes-on-compiler-warnings) but this isn't just a warning, it's an error with the default MSVC settings.\r\n\r\nYou have to disable SDL Checks in the project properties to have it treated as just a warning again. [https://msdn.microsoft.com/en-us/library/jj161081.aspx?f=255&MSPPError=-2147217396](https://msdn.microsoft.com/en-us/library/jj161081.aspx?f=255&MSPPError=-2147217396).\r\n\r\nThis should be in the documentation, or perhaps a `#pragma warning (suppress :  4146 )` could be added to suppress this warning on the relevant lines?"}}
{"actor":{"display_login":"s-bear"}}