{"action":"created","issue":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/957","repository_url":"https://api.github.com/repos/cpputest/cpputest","labels_url":"https://api.github.com/repos/cpputest/cpputest/issues/957/labels{/name}","comments_url":"https://api.github.com/repos/cpputest/cpputest/issues/957/comments","events_url":"https://api.github.com/repos/cpputest/cpputest/issues/957/events","html_url":"https://github.com/cpputest/cpputest/issues/957","id":153674648,"number":957,"title":"GCC 6: Missing sized deallocation functions","user":{"login":"offa","id":8887756,"avatar_url":"https://avatars.githubusercontent.com/u/8887756?v=3","gravatar_id":"","url":"https://api.github.com/users/offa","html_url":"https://github.com/offa","followers_url":"https://api.github.com/users/offa/followers","following_url":"https://api.github.com/users/offa/following{/other_user}","gists_url":"https://api.github.com/users/offa/gists{/gist_id}","starred_url":"https://api.github.com/users/offa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offa/subscriptions","organizations_url":"https://api.github.com/users/offa/orgs","repos_url":"https://api.github.com/users/offa/repos","events_url":"https://api.github.com/users/offa/events{/privacy}","received_events_url":"https://api.github.com/users/offa/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-05-08T20:02:39Z","updated_at":"2016-05-12T08:09:38Z","closed_at":null,"body":"Compiling with GCC 6 (Cmake, C++11 enabled) emits following warning:\r\n\r\n```\r\n[…]/cpputest/src/CppUTest/MemoryLeakWarningPlugin.cpp:312:6: Warnung: the program should also define »void operator delete(void*, std::size_t)« [-Wsized-deallocation]\r\n void operator delete(void* mem) UT_NOTHROW\r\n      ^~~~~~~~\r\n[…]/cpputest/src/CppUTest/MemoryLeakWarningPlugin.cpp:332:6: Warnung: the program should also define »void operator delete [](void*, std::size_t)« [-Wsized-deallocation]\r\n void operator delete[](void* mem) UT_NOTHROW\r\n      ^~~~~~~~\r\n```\r\n\r\nAbout this [warning](https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html):\r\n\r\n> -Wsized-deallocation (C++ and Objective-C++ only)\r\n>     Warn about a definition of an unsized deallocation function\r\n> \r\n>               void operator delete (void *) noexcept;\r\n>               void operator delete[] (void *) noexcept;\r\n> \r\n>     without a definition of the corresponding sized deallocation function\r\n> \r\n>               void operator delete (void *, std::size_t) noexcept;\r\n>               void operator delete[] (void *, std::size_t) noexcept;\r\n> \r\n>     or vice versa. Enabled by -Wextra along with -fsized-deallocation. \r\n\r\n---------------------------------------------\r\n**Update:** Same with C++11 disabled. "},"comment":{"url":"https://api.github.com/repos/cpputest/cpputest/issues/comments/218688613","html_url":"https://github.com/cpputest/cpputest/issues/957#issuecomment-218688613","issue_url":"https://api.github.com/repos/cpputest/cpputest/issues/957","id":218688613,"user":{"login":"arstrube","id":4686469,"avatar_url":"https://avatars.githubusercontent.com/u/4686469?v=3","gravatar_id":"","url":"https://api.github.com/users/arstrube","html_url":"https://github.com/arstrube","followers_url":"https://api.github.com/users/arstrube/followers","following_url":"https://api.github.com/users/arstrube/following{/other_user}","gists_url":"https://api.github.com/users/arstrube/gists{/gist_id}","starred_url":"https://api.github.com/users/arstrube/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arstrube/subscriptions","organizations_url":"https://api.github.com/users/arstrube/orgs","repos_url":"https://api.github.com/users/arstrube/repos","events_url":"https://api.github.com/users/arstrube/events{/privacy}","received_events_url":"https://api.github.com/users/arstrube/received_events","type":"User","site_admin":false},"created_at":"2016-05-12T08:09:38Z","updated_at":"2016-05-12T08:09:38Z","body":"The option should only be in CXXFLAGS, not in CFLAGS."}}