[FFmpeg-devel] [PATCH 1/4] avcodec/metasound_data: remove unused variable

Michael Niedermayer michael at niedermayer.cc
Thu Aug 20 23:19:08 CEST 2015


On Thu, Aug 20, 2015 at 05:12:40PM -0400, Ganesh Ajjanagadde wrote:
> On Thu, Aug 20, 2015 at 6:37 AM, Michael Niedermayer
> <michael at niedermayer.cc> wrote:
> > On Thu, Aug 20, 2015 at 04:34:19AM -0400, Ganesh Ajjanagadde wrote:
> >> On Thu, Aug 20, 2015 at 4:28 AM, Ganesh Ajjanagadde
> >> <gajjanagadde at gmail.com> wrote:
> >> > Fixes -Wunused-const-variable from
> >> > http://fate.ffmpeg.org/report.cgi?time=20150820031140&slot=arm64-darwin-clang-apple-5.1
> >> >
> >> > Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> >> > ---
> >> >  libavcodec/metasound_data.c | 4 ----
> >> >  1 file changed, 4 deletions(-)
> >> >
> >> > diff --git a/libavcodec/metasound_data.c b/libavcodec/metasound_data.c
> >> > index e439b3d..da2548a 100644
> >> > --- a/libavcodec/metasound_data.c
> >> > +++ b/libavcodec/metasound_data.c
> >> > @@ -14946,10 +14946,6 @@ static const uint16_t bark_tab_s16_128[] = {
> >> >      2, 2, 2, 3, 3, 5, 7, 12, 25, 67
> >> >  };
> >> >
> >> > -static const uint16_t bark_tab_s16_64[] = {
> >> > -    1, 1, 2, 2, 3, 6, 11, 38
> >> > -};
> >> > -
> >> >  static const uint16_t bark_tab_l16s_1024[] = {
> >> >        9,   9,   8,   9,  10,   9,  10,  10,
> >> >       10,  12,  11,  13,  13,  14,  16,  17,
> >> > --
> >> > 2.5.0
> >> >
> >>
> >> Some comments:
> >> 1. I am still working on the remaining warnings and sent these mainly
> >> for feedback.
> >> If people think these are too trivial/waste of time I will refrain
> >> from these in future.
> >
> >> 2. If above are ok, I can squash complete warning cleanup (from this
> >> file) into single
> >> patch if that is preferred.
> >
> > i dont think this particular table removial should be squashed with
> > anything as its quite possible the table would be used in the future
> > and a seperate commit is (slihgtly) easier to revert
> 
> Perhaps nontrivial unused stuff (which one can't come up with in a few minutes)
> should simply be commented out.
> It will be easier for a future developer to work on it,
> since they won't have to go through the git logs to find the commit removing
> the data.
> 
> Do you prefer the commenting out, or the deletion?

i think commenting out is a good idea

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

Frequently ignored answer#1 FFmpeg bugs should be sent to our bugtracker. User
questions about the command line tools should be sent to the ffmpeg-user ML.
And questions about how to use libav* should be sent to the libav-user ML.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150820/e2f853db/attachment.sig>


More information about the ffmpeg-devel mailing list