New issue 511: warning: declaration shadows a variable in namespace 'x265'
[-Wshadow]
https://bitbucket.org/multicoreware/x265/issues/511/warning-declaration-shadows-a-variable-in
Nomis101:
While building x265 inside HandBrake, I see some of the following warnings:
```c
/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
```c
/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
```c
/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.
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel