Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failures with GCC 12 and -Werror #3533

Closed
jrmuizel opened this issue Jun 7, 2022 · 0 comments
Closed

Build failures with GCC 12 and -Werror #3533

jrmuizel opened this issue Jun 7, 2022 · 0 comments

Comments

@jrmuizel
Copy link
Contributor

jrmuizel commented Jun 7, 2022

The mingw CI build is now broken because it has updated to GCC 12

In function 'void AnchorPredInter16x8Mv(int16_t (*)[30][2], int8_t (*)[30], int32_t, int8_t, int16_t*)',
    inlined from 'virtual void PredMvTest_PredInter16x8Mv_Test::TestBody()' at ../test/decoder/DecUT_PredMv.cpp:238:27:
../test/decoder/DecUT_PredMv.cpp:103:18: error: 'sAncMvPred' may be used uninitialized [-Werror=maybe-uninitialized]
  103 |     const int8_t kiTopRef = iRefIndex[0][1];
      |                  ^~~~~~~~
../test/decoder/DecUT_PredMv.cpp: In member function 'virtual void PredMvTest_PredInter16x8Mv_Test::TestBody()':
../test/decoder/DecUT_PredMv.cpp:228:17: note: 'sAncMvPred' declared here
  228 |   SAnchorMvPred sAncMvPred;
      |                 ^~~~~~~~~~
In function 'void AnchorPredInter16x8Mv(int16_t (*)[30][2], int8_t (*)[30], int32_t, int8_t, int16_t*)',
    inlined from 'virtual void PredMvTest_PredInter16x8Mv_Test::TestBody()' at ../test/decoder/DecUT_PredMv.cpp:238:27:
../test/decoder/DecUT_PredMv.cpp:109:18: error: 'sAncMvPred' may be used uninitialized [-Werror=maybe-uninitialized]
  109 |     const int8_t kiLeftRef = iRefIndex[0][18];
      |                  ^~~~~~~~~
../test/decoder/DecUT_PredMv.cpp: In member function 'virtual void PredMvTest_PredInter16x8Mv_Test::TestBody()':
../test/decoder/DecUT_PredMv.cpp:228:17: note: 'sAncMvPred' declared here
  228 |   SAnchorMvPred sAncMvPred;
      |                 ^~~~~~~~~~
In function 'void AnchorPredInter8x16Mv(int16_t (*)[30][2], int8_t (*)[30], int32_t, int8_t, int16_t*)',
    inlined from 'virtual void PredMvTest_PredInter8x16Mv_Test::TestBody()' at ../test/decoder/DecUT_PredMv.cpp:257:27:
../test/decoder/DecUT_PredMv.cpp:79:18: error: 'sAncMvPred' may be used uninitialized [-Werror=maybe-uninitialized]
   79 |     const int8_t kiLeftRef = iRefIndex[0][6];
      |                  ^~~~~~~~~
../test/decoder/DecUT_PredMv.cpp: In member function 'virtual void PredMvTest_PredInter8x16Mv_Test::TestBody()':
../test/decoder/DecUT_PredMv.cpp:247:17: note: 'sAncMvPred' declared here
  247 |   SAnchorMvPred sAncMvPred;
      |                 ^~~~~~~~~~
In function 'void AnchorPredInter8x16Mv(int16_t (*)[30][2], int8_t (*)[30], int32_t, int8_t, int16_t*)',
    inlined from 'virtual void PredMvTest_PredInter8x16Mv_Test::TestBody()' at ../test/decoder/DecUT_PredMv.cpp:257:27:
../test/decoder/DecUT_PredMv.cpp:85:12: error: 'sAncMvPred' may be used uninitialized [-Werror=maybe-uninitialized]
   85 |     int8_t iDiagonalRef = iRefIndex[0][5]; //top-right
      |            ^~~~~~~~~~~~
../test/decoder/DecUT_PredMv.cpp: In member function 'virtual void PredMvTest_PredInter8x16Mv_Test::TestBody()':
../test/decoder/DecUT_PredMv.cpp:247:17: note: 'sAncMvPred' declared here
  247 |   SAnchorMvPred sAncMvPred;
      |                 ^~~~~~~~~~
In function 'void AnchorPredInter8x16Mv(int16_t (*)[30][2], int8_t (*)[30], int32_t, int8_t, int16_t*)',
    inlined from 'virtual void PredMvTest_PredInter8x16Mv_Test::TestBody()' at ../test/decoder/DecUT_PredMv.cpp:257:27:
../test/decoder/DecUT_PredMv.cpp:88:20: error: 'sAncMvPred' may be used uninitialized [-Werror=maybe-uninitialized]
   88 |       iDiagonalRef = iRefIndex[0][2]; //top-left for 8*8 block(index 1)
      |       ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
../test/decoder/DecUT_PredMv.cpp: In member function 'virtual void PredMvTest_PredInter8x16Mv_Test::TestBody()':
../test/decoder/DecUT_PredMv.cpp:247:17: note: 'sAncMvPred' declared here
  247 |   SAnchorMvPred sAncMvPred;
      |                 ^~~~~~~~~~
jrmuizel added a commit to jrmuizel/openh264 that referenced this issue Jun 7, 2022
jrmuizel added a commit to jrmuizel/openh264 that referenced this issue Jun 8, 2022
jrmuizel added a commit to jrmuizel/openh264 that referenced this issue Jun 8, 2022
@jrmuizel jrmuizel mentioned this issue Jun 17, 2022
@huili2 huili2 closed this as completed Nov 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants