{"action":"created","issue":{"url":"https://api.github.com/repos/tomaka/hlua/issues/72","repository_url":"https://api.github.com/repos/tomaka/hlua","labels_url":"https://api.github.com/repos/tomaka/hlua/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/tomaka/hlua/issues/72/comments","events_url":"https://api.github.com/repos/tomaka/hlua/issues/72/events","html_url":"https://github.com/tomaka/hlua/pull/72","id":148221146,"number":72,"title":"Fix hundreds of improper_ctypes warnings","user":{"login":"Ameliorate","id":5217122,"avatar_url":"https://avatars.githubusercontent.com/u/5217122?v=3","gravatar_id":"","url":"https://api.github.com/users/Ameliorate","html_url":"https://github.com/Ameliorate","followers_url":"https://api.github.com/users/Ameliorate/followers","following_url":"https://api.github.com/users/Ameliorate/following{/other_user}","gists_url":"https://api.github.com/users/Ameliorate/gists{/gist_id}","starred_url":"https://api.github.com/users/Ameliorate/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ameliorate/subscriptions","organizations_url":"https://api.github.com/users/Ameliorate/orgs","repos_url":"https://api.github.com/users/Ameliorate/repos","events_url":"https://api.github.com/users/Ameliorate/events{/privacy}","received_events_url":"https://api.github.com/users/Ameliorate/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-04-14T00:58:03Z","updated_at":"2016-04-14T04:44:53Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/tomaka/hlua/pulls/72","html_url":"https://github.com/tomaka/hlua/pull/72","diff_url":"https://github.com/tomaka/hlua/pull/72.diff","patch_url":"https://github.com/tomaka/hlua/pull/72.patch"},"body":"This does it by adding a 8 bit padding value to the lua_State struct.\r\n\r\nThese warnings, however, are still correct. The C spec does not account for zero sized structs. In C, structs that are empty still take up space, for the reason that two different variables will always have different addresses."},"comment":{"url":"https://api.github.com/repos/tomaka/hlua/issues/comments/209759366","html_url":"https://github.com/tomaka/hlua/pull/72#issuecomment-209759366","issue_url":"https://api.github.com/repos/tomaka/hlua/issues/72","id":209759366,"user":{"login":"tomaka","id":1412254,"avatar_url":"https://avatars.githubusercontent.com/u/1412254?v=3","gravatar_id":"","url":"https://api.github.com/users/tomaka","html_url":"https://github.com/tomaka","followers_url":"https://api.github.com/users/tomaka/followers","following_url":"https://api.github.com/users/tomaka/following{/other_user}","gists_url":"https://api.github.com/users/tomaka/gists{/gist_id}","starred_url":"https://api.github.com/users/tomaka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomaka/subscriptions","organizations_url":"https://api.github.com/users/tomaka/orgs","repos_url":"https://api.github.com/users/tomaka/repos","events_url":"https://api.github.com/users/tomaka/events{/privacy}","received_events_url":"https://api.github.com/users/tomaka/received_events","type":"User","site_admin":false},"created_at":"2016-04-14T04:44:52Z","updated_at":"2016-04-14T04:44:52Z","body":"The struct is only ever accessed by pointer, so in theory it's not a problem if it's zero-sized.\r\nI'm not sure if your PR is the right fix to these warnings."}}