{"action":"opened","issue":{"url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/1464","repository_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder","labels_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/1464/labels{/name}","comments_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/1464/comments","events_url":"https://api.github.com/repos/ZoneMinder/ZoneMinder/issues/1464/events","html_url":"https://github.com/ZoneMinder/ZoneMinder/issues/1464","id":153579922,"number":1464,"title":"ZM compile error with gcc 6.1","user":{"login":"gj12","id":8588565,"avatar_url":"https://avatars.githubusercontent.com/u/8588565?v=3","gravatar_id":"","url":"https://api.github.com/users/gj12","html_url":"https://github.com/gj12","followers_url":"https://api.github.com/users/gj12/followers","following_url":"https://api.github.com/users/gj12/following{/other_user}","gists_url":"https://api.github.com/users/gj12/gists{/gist_id}","starred_url":"https://api.github.com/users/gj12/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gj12/subscriptions","organizations_url":"https://api.github.com/users/gj12/orgs","repos_url":"https://api.github.com/users/gj12/repos","events_url":"https://api.github.com/users/gj12/events{/privacy}","received_events_url":"https://api.github.com/users/gj12/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-07T07:40:45Z","updated_at":"2016-05-07T07:40:45Z","closed_at":null,"body":"```\r\n[  1%] Building CXX object src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o\r\nIn file included from /root/ZM/ZM2/src/zm_rtp_ctrl.cpp:24:0:\r\n/root/ZM/ZM2/src/zm_rtp_ctrl.h:128:23: error: flexible array member 'RtpCtrlThread::RtcpPacket::<anonymous union>::Bye::srcN' in an otherwise empty 'struct RtpCtrlThread::RtcpPacket::<anonymous union>::Bye'\r\n         uint32_t srcN[];   // list of sources\r\n                       ^\r\n/root/ZM/ZM2/src/zm_rtp_ctrl.h:126:14: note: in the definition of 'struct RtpCtrlThread::RtcpPacket::<anonymous union>::Bye'\r\n       struct Bye\r\n              ^~~\r\nsrc/CMakeFiles/zm.dir/build.make:710: recipe for target 'src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o' failed\r\nmake[2]: *** [src/CMakeFiles/zm.dir/zm_rtp_ctrl.cpp.o] Error 1\r\nCMakeFiles/Makefile2:291: recipe for target 'src/CMakeFiles/zm.dir/all' failed\r\nmake[1]: *** [src/CMakeFiles/zm.dir/all] Error 2\r\nMakefile:127: recipe for target 'all' failed\r\nmake: *** [all] Error 2\r\n```\r\n\r\nThis fixes the problem for me:\r\n\r\n```diff\r\ndiff --git a/src/zm_rtp_ctrl.h b/src/zm_rtp_ctrl.h\r\nindex 2526f22..439f444 100644\r\n--- a/src/zm_rtp_ctrl.h\r\n+++ b/src/zm_rtp_ctrl.h\r\n@@ -123,7 +123,7 @@ private:\r\n       } sdes;\r\n\r\n       // BYE\r\n-      struct Bye\r\n+      struct\r\n       {\r\n         uint32_t srcN[];   // list of sources\r\n         // can't express trailing text for reason (what does this mean? it's not even english!)\r\n"}}