[x265] Issue #511: warning: declaration shadows a variable in namespace 'x265' [-Wshadow] (multicoreware/x265)

Nomis101 issues-reply at bitbucket.org
Wed Sep 18 00:40:57 CEST 2019


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.




More information about the x265-devel mailing list