{"action":"created","issue":{"url":"https://api.github.com/repos/boostorg/compute/issues/637","repository_url":"https://api.github.com/repos/boostorg/compute","labels_url":"https://api.github.com/repos/boostorg/compute/issues/637/labels{/name}","comments_url":"https://api.github.com/repos/boostorg/compute/issues/637/comments","events_url":"https://api.github.com/repos/boostorg/compute/issues/637/events","html_url":"https://github.com/boostorg/compute/issues/637","id":168075722,"number":637,"title":"Compile warnings in master and develop branches","user":{"login":"dPavelDev","id":17548434,"avatar_url":"https://avatars.githubusercontent.com/u/17548434?v=3","gravatar_id":"","url":"https://api.github.com/users/dPavelDev","html_url":"https://github.com/dPavelDev","followers_url":"https://api.github.com/users/dPavelDev/followers","following_url":"https://api.github.com/users/dPavelDev/following{/other_user}","gists_url":"https://api.github.com/users/dPavelDev/gists{/gist_id}","starred_url":"https://api.github.com/users/dPavelDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dPavelDev/subscriptions","organizations_url":"https://api.github.com/users/dPavelDev/orgs","repos_url":"https://api.github.com/users/dPavelDev/repos","events_url":"https://api.github.com/users/dPavelDev/events{/privacy}","received_events_url":"https://api.github.com/users/dPavelDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-07-28T11:41:31Z","updated_at":"2016-08-03T04:40:00Z","closed_at":null,"body":"When I tried to rebuild my project, I got some compile warnings in boost::compute sources:\r\n\r\nIn master and develop branches:\r\n```\r\ne:\\PROJECTS\\compute\\include\\boost\\compute\\exception\\context_error.hpp:73: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]\r\n     const size_t get_private_info_size() const throw()\r\n                                                      ^\r\n```\r\nIf remove const before size_t, warning is disappear but may be exist more right method.\r\n\r\nIn develop branch:\r\n```\r\ne:\\PROJECTS\\compute\\include\\boost\\compute\\kernel.hpp:265: warning: unused parameter 'index' [-Wunused-parameter]\r\n     void set_arg_svm_ptr(size_t index, void* ptr)\r\n                                 ^\r\n```\r\nAnd ptr when not defined CL_VERSION_2_0.\r\n\r\nAlso, when I rebuild project using MSVC (argument size_t size):\r\n```\r\nE:\\PROJECTS\\compute\\include\\boost\\compute\\detail\\get_object_info.hpp:42: warning: C4267: 'argument': conversion from 'size_t' to 'cl_uint', possible loss of data\r\n```\r\nacquire.hpp:39, acquire.hpp:64, get_object_info.hpp:42\r\n```\r\nE:\\PROJECTS\\compute\\include\\boost\\compute\\interop\\opengl\\acquire.hpp:39: warning: C4267: 'argument': conversion from 'size_t' to 'cl_uint', possible loss of data\r\n```\r\nOn x64 size_t != cl_uint. It is necessary to fix this warnings?\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/36425864-compile-warnings-in-master-and-develop-branches?utm_campaign=plugin&utm_content=tracker%2F402515&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F402515&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/boostorg/compute/issues/comments/237136304","html_url":"https://github.com/boostorg/compute/issues/637#issuecomment-237136304","issue_url":"https://api.github.com/repos/boostorg/compute/issues/637","id":237136304,"user":{"login":"kylelutz","id":45812,"avatar_url":"https://avatars.githubusercontent.com/u/45812?v=3","gravatar_id":"","url":"https://api.github.com/users/kylelutz","html_url":"https://github.com/kylelutz","followers_url":"https://api.github.com/users/kylelutz/followers","following_url":"https://api.github.com/users/kylelutz/following{/other_user}","gists_url":"https://api.github.com/users/kylelutz/gists{/gist_id}","starred_url":"https://api.github.com/users/kylelutz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kylelutz/subscriptions","organizations_url":"https://api.github.com/users/kylelutz/orgs","repos_url":"https://api.github.com/users/kylelutz/repos","events_url":"https://api.github.com/users/kylelutz/events{/privacy}","received_events_url":"https://api.github.com/users/kylelutz/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T04:40:00Z","updated_at":"2016-08-03T04:40:00Z","body":"Hmm, is there any sort of \"back-trace\" for that warning? I'd like to see where it's getting called from (the `get_object_info()` function is a wrapper for many different `clGet*Info()` calls, most of which use `size_t` instead of `cl_uint`)."}}
{"actor":{"display_login":"kylelutz"}}