warning: declaration shadows a variable in namespace 'x265' [-Wshadow]
Issue #511
new
While building x265 inside HandBrake, I see some of the following warnings:
/HandBrake/build/contrib/x265/x265_3.1.2/source/common/scalinglist.h:36:12: warning: declaration shadows a variable in namespace 'x265' [-Wshadow]
enum { NUM_SIZES = 4 }; // 4x4, 8x8, 16x16, 32x32
^
/HandBrake/build/contrib/x265/x265_3.1.2/source/common/cudata.h:51:5: note: previous declaration is here
NUM_SIZES
^
and
/HandBrake/build/contrib/x265/x265_3.1.2/source/common/scalinglist.h:36:12: warning: declaration shadows a variable in namespace 'x265_10bit' [-Wshadow]
enum { NUM_SIZES = 4 }; // 4x4, 8x8, 16x16, 32x32
^
/HandBrake/build/contrib/x265/x265_3.1.2/source/common/cudata.h:51:5: note: previous declaration is here
NUM_SIZES
^
and
/HandBrake/build/contrib/x265/x265_3.1.2/source/common/scalinglist.h:36:12: warning:
declaration shadows a variable in namespace 'x265_12bit' [-Wshadow]
enum { NUM_SIZES = 4 }; // 4x4, 8x8, 16x16, 32x32
^
/HandBrake/build/contrib/x265/x265_3.1.2/source/common/cudata.h:51:5: note: previous declaration is here
NUM_SIZES
^
This is on macOS 10.14, but I think holds true for any other OS.