{"action":"created","issue":{"url":"https://api.github.com/repos/ofnode/of/issues/29","labels_url":"https://api.github.com/repos/ofnode/of/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/ofnode/of/issues/29/comments","events_url":"https://api.github.com/repos/ofnode/of/issues/29/events","html_url":"https://github.com/ofnode/of/issues/29","id":109472828,"number":29,"title":"doest this small warning could lead to runtime error ?","user":{"login":"avilleret","id":504914,"avatar_url":"https://avatars.githubusercontent.com/u/504914?v=3","gravatar_id":"","url":"https://api.github.com/users/avilleret","html_url":"https://github.com/avilleret","followers_url":"https://api.github.com/users/avilleret/followers","following_url":"https://api.github.com/users/avilleret/following{/other_user}","gists_url":"https://api.github.com/users/avilleret/gists{/gist_id}","starred_url":"https://api.github.com/users/avilleret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avilleret/subscriptions","organizations_url":"https://api.github.com/users/avilleret/orgs","repos_url":"https://api.github.com/users/avilleret/repos","events_url":"https://api.github.com/users/avilleret/events{/privacy}","received_events_url":"https://api.github.com/users/avilleret/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-02T11:09:12Z","updated_at":"2015-10-02T16:57:00Z","closed_at":"2015-10-02T16:57:00Z","body":"I got this warning when building on RPi2 with clang++ :\r\n\r\n~~~~\r\n../src/openframeworks/app/ofAppEGLWindow.cpp:181:34: warning: adding 'EGLint' (aka 'int') to a string does not append to the string [-Wstring-plus-int]\r\n        default: str = \"unknown error \" + err; break;\r\n                       ~~~~~~~~~~~~~~~~~^~~~~\r\n../src/openframeworks/app/ofAppEGLWindow.cpp:181:34: note: use array indexing to silence this warning\r\n        default: str = \"unknown error \" + err; break;\r\n                                        ^\r\n                       &                [    ]\r\n~~~~\r\n\r\nAnd I'm wondering if this could throw runtime error ?"},"comment":{"url":"https://api.github.com/repos/ofnode/of/issues/comments/145085658","html_url":"https://github.com/ofnode/of/issues/29#issuecomment-145085658","issue_url":"https://api.github.com/repos/ofnode/of/issues/29","id":145085658,"user":{"login":"avilleret","id":504914,"avatar_url":"https://avatars.githubusercontent.com/u/504914?v=3","gravatar_id":"","url":"https://api.github.com/users/avilleret","html_url":"https://github.com/avilleret","followers_url":"https://api.github.com/users/avilleret/followers","following_url":"https://api.github.com/users/avilleret/following{/other_user}","gists_url":"https://api.github.com/users/avilleret/gists{/gist_id}","starred_url":"https://api.github.com/users/avilleret/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/avilleret/subscriptions","organizations_url":"https://api.github.com/users/avilleret/orgs","repos_url":"https://api.github.com/users/avilleret/repos","events_url":"https://api.github.com/users/avilleret/events{/privacy}","received_events_url":"https://api.github.com/users/avilleret/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T16:57:00Z","updated_at":"2015-10-02T16:57:00Z","body":"ok cool if it doesn't hurt, but I'm wondering what is the output of that.\r\nI'm not a C++ expert, but as far as I understand [string::operator+](http://www.cplusplus.com/reference/string/string/operator+=/) documentation :\r\n\r\n~~~~\r\nchar c = 32;\r\nstring foo = \"bar \" + c;\r\ncout << foo << endl;\r\n~~~~\r\n\r\nwouldn't output `bar 32` isn't ?\r\n\r\nbtw if this doesn't make runtime issue even with clang and since this is an OF problem, I close this ticket.\r\n"}}