Hi,

after the deprecation of AVLPCType, gcc-4.6 always produces warnings
about wrong placement of enum attribute:

/opt/ffmpeg-git/include/libavcodec/avcodec.h:522:34: warning:
attribute ignored in declaration of ‘enum AVLPCType’ [enabled by
default]
/opt/ffmpeg-git/include/libavcodec/avcodec.h:522:34: warning:
attribute for ‘enum AVLPCType’ must follow the ‘enum’ keyword [enabled
by default]

It can be trivially fixed by swapping enum and attribute_deprecated,
but after that, gcc still prints a deprecation warning any time
avcodec.h is included, no matter if AVLPCType is being used or not. I
guess it would be better to remove attribute_deprecated in this case,
and leave it only on the AVCodecContext member.

--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -519,7 +519,7 @@ enum AVChromaLocation{
 /**
  * LPC analysis type
  */
-attribute_deprecated enum AVLPCType {
+enum attribute_deprecated AVLPCType {
     AV_LPC_TYPE_DEFAULT     = -1, ///< use the codec default LPC type
     AV_LPC_TYPE_NONE        =  0, ///< do not use LPC prediction or
use all zero coefficients
     AV_LPC_TYPE_FIXED       =  1, ///< fixed LPC coefficients


-- 
Jindrich Makovicka
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to