Skip to content

2 compiler warnings when compiling opus-1.6.1 using gcc-16 #451

@heitbaum

Description

@heitbaum

2 compiler warnings when compiling opus-1.6.1 using gcc-16

TOOLCHAIN      configure
Executing (target): /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/build/opus-1.6.1/configure --host=x86_64-libreelec-linux-gnu --build=x86_64-linux-gnu --prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --libdir=/usr/lib --libexecdir=/usr/lib --localstatedir=/var --disable-static --enable-shared --enable-static --disable-shared --disable-fixed-pointCCLD     celt/tests/test_unit_rotation
In file included from /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/include/string.h:548,
                 from ../silk/SigProc_FIX.h:36,
                 from ../silk/float/SigProc_FLP.h:31,
                 from ../silk/float/pitch_analysis_core_FLP.c:35:
In function 'memset',
    inlined from 'silk_pitch_analysis_core_FLP' at ../silk/float/pitch_analysis_core_FLP.c:168:5:
/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-13.0-devel/toolchain/x86_64-libreelec-linux-gnu/sysroot/usr/include/bits/string_fortified.h:59:10: warning: '__builtin___memset_chk' specified bound between 18446744041712042996 and 18446744073709549232 exceeds maximum object size 9223372036854775807 [-Wstringop-overflow=]
   59 |   return __builtin___memset_chk (__dest, __ch, __len,
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   60 |                                  __glibc_objsize0 (__dest));
      |                                  ~~~~~~~~~~~~~~~~~~~~~~~~~~
../silk/float/pitch_analysis_core_FLP.c: In function 'silk_pitch_analysis_core_FLP':
../silk/float/pitch_analysis_core_FLP.c:157:5: warning: 'frame_8_FIX' may be used uninitialized [-Wmaybe-uninitialized]
  157 |     silk_resampler_down2( filt_state, frame_4_FIX, frame_8_FIX, frame_length_8kHz );
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
../silk/SigProc_FIX.h:78:6: note: by argument 3 of type 'const opus_int16 *' {aka 'const short int *'} to 'silk_resampler_down2' declared here
   78 | void silk_resampler_down2(
      |      ^~~~~~~~~~~~~~~~~~~~
../silk/float/pitch_analysis_core_FLP.c:85:16: note: 'frame_8_FIX' declared here
   85 |     opus_int16 frame_8_FIX[ PE_MAX_FRAME_LENGTH_MS * 8 ];
      |                ^~~~~~~~~~~
  CCLD     libopus.la

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions