{"action":"created","issue":{"url":"https://api.github.com/repos/mbalmer/luaunix/issues/2","labels_url":"https://api.github.com/repos/mbalmer/luaunix/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/mbalmer/luaunix/issues/2/comments","events_url":"https://api.github.com/repos/mbalmer/luaunix/issues/2/events","html_url":"https://github.com/mbalmer/luaunix/issues/2","id":56167618,"number":2,"title":"Warnings on Linux","user":{"login":"catwell","id":221332,"avatar_url":"https://avatars.githubusercontent.com/u/221332?v=3","gravatar_id":"","url":"https://api.github.com/users/catwell","html_url":"https://github.com/catwell","followers_url":"https://api.github.com/users/catwell/followers","following_url":"https://api.github.com/users/catwell/following{/other_user}","gists_url":"https://api.github.com/users/catwell/gists{/gist_id}","starred_url":"https://api.github.com/users/catwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/catwell/subscriptions","organizations_url":"https://api.github.com/users/catwell/orgs","repos_url":"https://api.github.com/users/catwell/repos","events_url":"https://api.github.com/users/catwell/events{/privacy}","received_events_url":"https://api.github.com/users/catwell/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-01T15:54:23Z","updated_at":"2015-02-04T09:43:24Z","closed_at":null,"body":"On my machine (running current Arch Linux) building gives the following warnings:\r\n\r\n```\r\n$ make\r\ncc -Wall -O3 -fPIC -I/usr/include -I/usr/include/lua`lua -v 2>&1 | cut -c 5-7`   -c -o luaunix.o luaunix.c\r\nluaunix.c: In function ‘unix_signal’:\r\nluaunix.c:185:6: warning: passing argument 2 of ‘signal’ makes pointer from integer without a cast\r\n      luaL_checkinteger(L, 2)));\r\n      ^\r\nIn file included from luaunix.c:43:0:\r\n/usr/include/signal.h:102:23: note: expected ‘__sighandler_t’ but argument is of type ‘lua_Integer’\r\n extern __sighandler_t signal (int __sig, __sighandler_t __handler)\r\n                       ^\r\nluaunix.c:184:21: warning: passing argument 2 of ‘lua_pushinteger’ makes integer from pointer without a cast\r\n  lua_pushinteger(L, signal(luaL_checkinteger(L, 1),\r\n                     ^\r\nIn file included from luaunix.c:40:0:\r\n/usr/include/lua.h:207:22: note: expected ‘lua_Integer’ but argument is of type ‘__sighandler_t’\r\n LUA_API void        (lua_pushinteger) (lua_State *L, lua_Integer n);\r\n                      ^\r\nluaunix.c: At top level:\r\nluaunix.c:445:2: warning: initialization makes integer from pointer without a cast\r\n  CONSTANT(SIG_IGN),\r\n  ^\r\nluaunix.c:445:2: warning: (near initialization for ‘unix_constant[42].value’)\r\nluaunix.c:446:2: warning: initialization makes integer from pointer without a cast\r\n  CONSTANT(SIG_ERR),\r\n  ^\r\nluaunix.c:446:2: warning: (near initialization for ‘unix_constant[43].value’)\r\ncc -Wall -O3 -fPIC -I/usr/include -I/usr/include/lua`lua -v 2>&1 | cut -c 5-7`   -c -o select.o select.c\r\ncc -shared -o unix.so -Wall -O3 -fPIC -I/usr/include -I/usr/include/lua`lua -v 2>&1 | cut -c 5-7` luaunix.o select.o -L/lib -L/usr/lib -lbsd\r\n```"},"comment":{"url":"https://api.github.com/repos/mbalmer/luaunix/issues/comments/72826018","html_url":"https://github.com/mbalmer/luaunix/issues/2#issuecomment-72826018","issue_url":"https://api.github.com/repos/mbalmer/luaunix/issues/2","id":72826018,"user":{"login":"mbalmer","id":426015,"avatar_url":"https://avatars.githubusercontent.com/u/426015?v=3","gravatar_id":"","url":"https://api.github.com/users/mbalmer","html_url":"https://github.com/mbalmer","followers_url":"https://api.github.com/users/mbalmer/followers","following_url":"https://api.github.com/users/mbalmer/following{/other_user}","gists_url":"https://api.github.com/users/mbalmer/gists{/gist_id}","starred_url":"https://api.github.com/users/mbalmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbalmer/subscriptions","organizations_url":"https://api.github.com/users/mbalmer/orgs","repos_url":"https://api.github.com/users/mbalmer/repos","events_url":"https://api.github.com/users/mbalmer/events{/privacy}","received_events_url":"https://api.github.com/users/mbalmer/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T09:43:24Z","updated_at":"2015-02-04T09:43:24Z","body":"Fix commitet."}}