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

v1.5.2 compile warnings #338

Open
systemcrash opened this issue Apr 19, 2024 · 0 comments
Open

v1.5.2 compile warnings #338

systemcrash opened this issue Apr 19, 2024 · 0 comments

Comments

@systemcrash
Copy link

Just tried building v1.5.2 on macOS 13.6.6 (Xcode 14.2) and it seemed to build fine. Just got the following warnings:

  CC       dnn/freq.lo
silk/x86/NSQ_del_dec_avx2.c:961:26: warning: cast from 'opus_int32 *' (aka 'int *') to '__m128i *' increases required alignment from 4 to 16 [-Wcast-align]
        _mm_storeu_si128((__m128i*)&x_sc_Q10[i], silk_cvtepi64_epi32_high(x));
                         ^~~~~~~~~~~~~~~~~~~~~~
silk/x86/NSQ_del_dec_avx2.c:988:30: warning: cast from 'opus_int32 *' (aka 'int *') to '__m128i *' increases required alignment from 4 to 16 [-Wcast-align]
            _mm_storeu_si128((__m128i*)p, silk_mm_smulww_epi32(_mm_loadu_si128((__m128i*)p), gain_adj_Q16));
                             ^~~~~~~~~~~
silk/x86/NSQ_del_dec_avx2.c:988:80: warning: cast from 'opus_int32 *' (aka 'int *') to '__m128i *' increases required alignment from 4 to 16 [-Wcast-align]
            _mm_storeu_si128((__m128i*)p, silk_mm_smulww_epi32(_mm_loadu_si128((__m128i*)p), gain_adj_Q16));
                                                                               ^~~~~~~~~~~
silk/x86/NSQ_del_dec_avx2.c:1043:62: warning: cast from 'const opus_int16 *' (aka 'const short *') to '__m128i *' increases required alignment from 2 to 16 [-Wcast-align]
        __m256i in_v = _mm256_cvtepi16_epi32(_mm_loadu_si128((__m128i*)&in_ptr[-8]));
                                                             ^~~~~~~~~~~~~~~~~~~~~
silk/x86/NSQ_del_dec_avx2.c:1044:62: warning: cast from 'const opus_int16 *' (aka 'const short *') to '__m128i *' increases required alignment from 2 to 16 [-Wcast-align]
        __m256i B_v  = _mm256_cvtepi16_epi32(_mm_loadu_si128((__m128i*)&      B[0]));
                                                             ^~~~~~~~~~~~~~~~~~~~~
silk/x86/NSQ_del_dec_avx2.c:1048:58: warning: cast from 'const opus_int16 *' (aka 'const short *') to '__m128i *' increases required alignment from 2 to 16 [-Wcast-align]
            in_v = _mm256_cvtepi16_epi32(_mm_loadu_si128((__m128i*)&in_ptr[-16]));
                                                         ^~~~~~~~~~~~~~~~~~~~~~
silk/x86/NSQ_del_dec_avx2.c:1049:58: warning: cast from 'const opus_int16 *' (aka 'const short *') to '__m128i *' increases required alignment from 2 to 16 [-Wcast-align]
            B_v  = _mm256_cvtepi16_epi32(_mm_loadu_si128((__m128i*)&B       [8]));
                                                         ^~~~~~~~~~~~~~~~~~~~~~
  CC       dnn/fargan.lo
7 warnings generated.

built using

#!/bin/sh -e

opus=opus-1.5.2
if ! [ -d local/lib ] ; then
    rm -fr local $opus
    tar xf $opus.tar
    cd $opus
    ./configure --prefix=$(realpath ..)/local \
        --enable-deep-plc \
        --enable-osce \
        --disable-doc \
        --disable-extra-programs
    make -j4
    make install
    cd ..
    rm -r $opus
fi
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

1 participant