{"action":"created","issue":{"url":"https://api.github.com/repos/stealth/opmsg/issues/12","repository_url":"https://api.github.com/repos/stealth/opmsg","labels_url":"https://api.github.com/repos/stealth/opmsg/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/stealth/opmsg/issues/12/comments","events_url":"https://api.github.com/repos/stealth/opmsg/issues/12/events","html_url":"https://github.com/stealth/opmsg/issues/12","id":162204545,"number":12,"title":"Various warnings about ignored return values","user":{"login":"jvoisin","id":325724,"avatar_url":"https://avatars.githubusercontent.com/u/325724?v=3","gravatar_id":"","url":"https://api.github.com/users/jvoisin","html_url":"https://github.com/jvoisin","followers_url":"https://api.github.com/users/jvoisin/followers","following_url":"https://api.github.com/users/jvoisin/following{/other_user}","gists_url":"https://api.github.com/users/jvoisin/gists{/gist_id}","starred_url":"https://api.github.com/users/jvoisin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvoisin/subscriptions","organizations_url":"https://api.github.com/users/jvoisin/orgs","repos_url":"https://api.github.com/users/jvoisin/repos","events_url":"https://api.github.com/users/jvoisin/events{/privacy}","received_events_url":"https://api.github.com/users/jvoisin/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-06-24T18:31:17Z","updated_at":"2016-06-27T08:54:09Z","closed_at":"2016-06-27T08:54:09Z","body":"Are those warnings on purpose?\r\n\r\n```c\r\n$ make\r\nc++ -Wall -O2 -pedantic -std=c++11   -c keystore.cc\r\nkeystore.cc: In member function ‘opmsg::persona* opmsg::keystore::add_persona(const string&, const string&, const string&, const string&)’:\r\nkeystore.cc:438:45: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   write(fd, pub_pem.c_str(), pub_pem.size());\r\n                                             ^\r\nkeystore.cc:466:47: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   write(fd, priv_pem.c_str(), priv_pem.size());\r\n                                               ^\r\nkeystore.cc: In member function ‘int opmsg::persona::load_dh(const string&)’:\r\nkeystore.cc:629:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fgets(s, sizeof(s) - 1, f.get());\r\n                                   ^\r\nkeystore.cc: In member function ‘int opmsg::persona::load(const string&)’:\r\nkeystore.cc:695:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fgets(s, sizeof(s) - 1, f.get());\r\n                                   ^\r\nkeystore.cc:712:35: warning: ignoring return value of ‘char* fgets(char*, int, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   fgets(s, sizeof(s) - 1, f.get());\r\n                                   ^\r\nkeystore.cc: In member function ‘int opmsg::persona::del_dh_priv(const string&)’:\r\nkeystore.cc:1237:30: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   write(fd, buf, sizeof(buf));\r\n                              ^\r\nkeystore.cc: In member function ‘int opmsg::persona::link(const string&)’:\r\nkeystore.cc:1286:37: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   write(fd, hex.c_str(), hex.size());\r\n                                     ^\r\nkeystore.cc:1287:21: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]\r\n   write(fd, \"\\n\", 1);\r\n                     ^\r\nc++ -Wall -O2 -pedantic -std=c++11   -c opmsg.cc\r\nc++ -Wall -O2 -pedantic -std=c++11   -c misc.cc\r\nc++ -Wall -O2 -pedantic -std=c++11   -c config.cc\r\nc++ -Wall -O2 -pedantic -std=c++11   -c message.cc\r\nc++ -Wall -O2 -pedantic -std=c++11   -c marker.cc\r\nc++ -Wall -O2 -pedantic -std=c++11   -c base64.cc\r\nc++ -Wall -O2 -pedantic -std=c++11   -c deleters.cc\r\nc++ -Wall -O2 -pedantic -std=c++11   -c missing.cc\r\nc++ keystore.o opmsg.o misc.o config.o message.o marker.o base64.o deleters.o missing.o  -lcrypto -o opm\r\n```"},"comment":{"url":"https://api.github.com/repos/stealth/opmsg/issues/comments/228688869","html_url":"https://github.com/stealth/opmsg/issues/12#issuecomment-228688869","issue_url":"https://api.github.com/repos/stealth/opmsg/issues/12","id":228688869,"user":{"login":"stealth","id":1227710,"avatar_url":"https://avatars.githubusercontent.com/u/1227710?v=3","gravatar_id":"","url":"https://api.github.com/users/stealth","html_url":"https://github.com/stealth","followers_url":"https://api.github.com/users/stealth/followers","following_url":"https://api.github.com/users/stealth/following{/other_user}","gists_url":"https://api.github.com/users/stealth/gists{/gist_id}","starred_url":"https://api.github.com/users/stealth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stealth/subscriptions","organizations_url":"https://api.github.com/users/stealth/orgs","repos_url":"https://api.github.com/users/stealth/repos","events_url":"https://api.github.com/users/stealth/events{/privacy}","received_events_url":"https://api.github.com/users/stealth/received_events","type":"User","site_admin":false},"created_at":"2016-06-27T08:54:09Z","updated_at":"2016-06-27T08:54:09Z","body":"are you using gcc6 or something? There have not been any warning before. latest commits should fix it. I dont like warning either :D"}}
{"actor":{"display_login":"stealth"}}