Diego Biurrun <[email protected]> writes: > On Tue, Jul 31, 2012 at 04:41:33PM +0200, Diego Biurrun wrote: >> On Tue, Jul 31, 2012 at 07:16:05AM -0700, Ronald S. Bultje wrote: >> > On Tue, Jul 31, 2012 at 4:53 AM, Diego Biurrun <[email protected]> wrote: >> > > -DECLARE_ALIGNED(8, static const uint64_t, ff_pb_3_1 ) = >> > > 0x0103010301030103ULL; >> > > +DECLARE_ALIGNED(8, static const uint64_t, ff_pb_3_1) = >> > > 0x0103010301030103ULL; >> > >> > Unused? I thought my patch removed it. It should've. >> >> It appears unused, yes. But why does gcc not warn about this? > > It does warn when the variable is not const - what gives?
It is fashionable in some circles to use 'static int FOO = X' in place of #define FOO X. I guess it is to allow doing this in header files without generating warnings. -- Måns Rullgård [email protected] _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
