https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64337
--- Comment #1 from Piotr Bartosiewicz <p.bartosiewi at partner dot samsung.com> --- There is a very similar bug report https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57507 but the code from that one does not trigger a warning with gcc 4.9.