{"action":"closed","issue":{"url":"https://api.github.com/repos/CauldronDevelopmentLLC/cbang/issues/20","repository_url":"https://api.github.com/repos/CauldronDevelopmentLLC/cbang","labels_url":"https://api.github.com/repos/CauldronDevelopmentLLC/cbang/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/CauldronDevelopmentLLC/cbang/issues/20/comments","events_url":"https://api.github.com/repos/CauldronDevelopmentLLC/cbang/issues/20/events","html_url":"https://github.com/CauldronDevelopmentLLC/cbang/issues/20","id":231148465,"number":20,"title":"[SystemUtilities.cpp] warn_unused_result","user":{"login":"srakitnican","id":13233146,"avatar_url":"https://avatars0.githubusercontent.com/u/13233146?v=3","gravatar_id":"","url":"https://api.github.com/users/srakitnican","html_url":"https://github.com/srakitnican","followers_url":"https://api.github.com/users/srakitnican/followers","following_url":"https://api.github.com/users/srakitnican/following{/other_user}","gists_url":"https://api.github.com/users/srakitnican/gists{/gist_id}","starred_url":"https://api.github.com/users/srakitnican/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srakitnican/subscriptions","organizations_url":"https://api.github.com/users/srakitnican/orgs","repos_url":"https://api.github.com/users/srakitnican/repos","events_url":"https://api.github.com/users/srakitnican/events{/privacy}","received_events_url":"https://api.github.com/users/srakitnican/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-24T19:36:26Z","updated_at":"2017-05-24T19:49:06Z","closed_at":"2017-05-24T19:49:05Z","body":"With Fedora compiler flags this is an error.\r\n\r\n```\r\ng++ -o build/cbang/os/SystemUtilities.o -c -std=gnu++98 -ggdb -Wall -Werror -I/usr/include/v8-3.14/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -DDEBUG -D_REENTRANT -DHAVE_EXPAT -DHAVE_PTHREADS -DHAVE_LIBSQLITE -DHAVE_OPENSSL -DHAVE_V8 -DDEBUG_LEVEL=1 -DUSING_CBANG -Iinclude -Isrc -Isrc/boost src/cbang/os/SystemUtilities.cpp\r\ng++ -o build/cbang/os/TemporaryDirectory.o -c -std=gnu++98 -ggdb -Wall -Werror -I/usr/include/v8-3.14/ -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -DDEBUG -D_REENTRANT -DHAVE_EXPAT -DHAVE_PTHREADS -DHAVE_LIBSQLITE -DHAVE_OPENSSL -DHAVE_V8 -DDEBUG_LEVEL=1 -DUSING_CBANG -Iinclude -Isrc -Isrc/boost src/cbang/os/TemporaryDirectory.cpp\r\nsrc/cbang/os/SystemUtilities.cpp: In function 'void cb::SystemUtilities::daemonize()':\r\nsrc/cbang/os/SystemUtilities.cpp:961:47: error: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Werror=unused-result]\r\n       (void)::freopen(\"/dev/null\", \"r\", stdin);\r\n                                               ^\r\nsrc/cbang/os/SystemUtilities.cpp:962:48: error: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Werror=unused-result]\r\n       (void)::freopen(\"/dev/null\", \"w\", stdout);\r\n                                                ^\r\nsrc/cbang/os/SystemUtilities.cpp:963:48: error: ignoring return value of 'FILE* freopen(const char*, const char*, FILE*)', declared with attribute warn_unused_result [-Werror=unused-result]\r\n       (void)::freopen(\"/dev/null\", \"w\", stderr);\r\n                                                ^\r\n```"}}
{"actor":{"display_login":"jcoffland"}}