Trevor, That piece of code seems to come from some GTK example iirc, and certainly will benefit from some intelligent reworking. It relies on the idiomatic equivalence of `target_list[]` and `*tatget_list`, which gcc-6 apparently takes issue with.
It's difficult to tackle it practically because gcc-6 has not yet been released. But I'll see what I can do. Cheers, Andrei On 18 January 2016 at 18:52, Trevor Saunders <tbsaunde+deb...@tbsaunde.org> wrote: > Package: aghermann > Severity: normal > Tags: upstream > Usertags: ftbfs-gcc-6 > > Dear Maintainer, > > aghermann fails to build with gcc 6. Ther error is this: > > In file included from ui/sm/sm.cc:23:0: > .../../src/aghermann/ui/mw/mw.hh:332:37: error: flexible array member > 'agh::ui::SExpDesignUI::SDndIface::target_list' not at end of 'struct > agh::ui::SExpDesignUI::SDndIface' > target_list[]; > ^ > > .../../src/aghermann/ui/mw/mw.hh:330:16: note: in the definition of 'struct > agh::ui::SExpDesignUI::SDndIface' > struct SDndIface { > ^~~~~~~~~ > > The code being complained about is this: > struct SDndIface { > GtkTargetEntry > target_list[]; > size_t n_targets; > }; > > So there is a flexible array *before* the n_targets field which doesn't > seem to make any sense because you need to know the length of the array > to get at n_targets. > > > -- System Information: > Debian Release: 8.2 > APT prefers stable-updates > APT policy: (500, 'stable-updates'), (500, 'stable') > Architecture: amd64 (x86_64) > > Kernel: Linux 3.16.0-4-amd64 (SMP w/8 CPU cores) > Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8) > Shell: /bin/sh linked to /bin/dash > Init: sysvinit (via /sbin/init)