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

[0.4.x] libvisual-plugins: Fix compilation for GCC 12 and Clang 16 #116

Merged
merged 4 commits into from
Nov 30, 2022

Conversation

hartwork
Copy link
Member

No description provided.

@hartwork hartwork added this to the 0.4.1 milestone Nov 27, 2022
@hartwork hartwork force-pushed the 0.4.x-compiler-matrix branch 3 times, most recently from 9e1f27f to 01ce33d Compare November 30, 2022 00:11
@hartwork hartwork changed the title [0.4.x] libvisual-plugins: Fix compilation for GCC 12 and Clang 15 [0.4.x] libvisual-plugins: Fix compilation for GCC 12 and Clang 16 Nov 30, 2022
@hartwork hartwork force-pushed the 0.4.x-compiler-matrix branch 4 times, most recently from 4085c92 to 3e09506 Compare November 30, 2022 11:18
hartwork and others added 4 commits November 30, 2022 13:43
.. to fix -Wnarrowing compile errors:

> make[7]: Entering directory '/home/sping/__playground/libvisual-libvisual-GIT/libvisual-plugins/build2/plugins/actor/G-Force/Common/UI'
> /bin/sh ../../../../../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../../../../../plugins/actor/G-Force/Common/UI -I../../../../.. -I../../../../../../plugins/actor/G-Force/unix/Headers -I../../../../../../plugins/actor/G-Force/Common -I../../../../../../plugins/actor/G-Force/Common/GeneralTools/Headers -I../../../../../../plugins/actor/G-Force/Common/UI/Headers -I../../../../../../plugins/actor/G-Force/Common/math/Headers -I../../../../../../plugins/actor/G-Force/Common/io/Headers -I../../../../../../plugins/actor/G-Force/unix/libxpce -I../../../../../../plugins/actor/G-Force/unix/libmfl -I../../../../../../plugins/actor/G-Force/unix/libvisual   -DDATADIR="\"/usr/local/share/libvisual-plugins-0.4\"" -g -O2   -DUNIX_X -D_REENTRANT   -DUNIX_X -D_REENTRANT -MT EgOSUtils.lo -MD -MP -MF .deps/EgOSUtils.Tpo -c -o EgOSUtils.lo ../../../../../../plugins/actor/G-Force/Common/UI/EgOSUtils.cpp
> libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I../../../../../../plugins/actor/G-Force/Common/UI -I../../../../.. -I../../../../../../plugins/actor/G-Force/unix/Headers -I../../../../../../plugins/actor/G-Force/Common -I../../../../../../plugins/actor/G-Force/Common/GeneralTools/Headers -I../../../../../../plugins/actor/G-Force/Common/UI/Headers -I../../../../../../plugins/actor/G-Force/Common/math/Headers -I../../../../../../plugins/actor/G-Force/Common/io/Headers -I../../../../../../plugins/actor/G-Force/unix/libxpce -I../../../../../../plugins/actor/G-Force/unix/libmfl -I../../../../../../plugins/actor/G-Force/unix/libvisual -DDATADIR=\"/usr/local/share/libvisual-plugins-0.4\" -g -O2 -DUNIX_X -D_REENTRANT -DUNIX_X -D_REENTRANT -MT EgOSUtils.lo -MD -MP -MF .deps/EgOSUtils.Tpo -c ../../../../../../plugins/actor/G-Force/Common/UI/EgOSUtils.cpp  -fPIC -DPIC -o .libs/EgOSUtils.o
> [..]
> In file included from /usr/include/features.h:490,
>                  from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/x86_64-pc-linux-gnu/bits/os_defines.h:39,
>                  from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/x86_64-pc-linux-gnu/bits/c++config.h:655,
>                  from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/cstdlib:41,
>                  from /usr/lib/gcc/x86_64-pc-linux-gnu/12/include/g++-v12/stdlib.h:36,
>                  from ../../../../../../plugins/actor/G-Force/Common/UI/EgOSUtils.cpp:7:
> /usr/include/stdlib.h:98:45: error: narrowing conversion of '-1' from 'int' to 'bool' [-Wnarrowing]
>    98 | extern size_t __ctype_get_mb_cur_max (void) __THROW __wur;
>       |                                             ^~~~~~~
> /usr/include/stdlib.h:103:6: error: narrowing conversion of '-1' from 'int' to 'bool' [-Wnarrowing]
>   103 |      __THROW __attribute_pure__ __nonnull ((1)) __wur;
>       |      ^~~~~~~
> /usr/include/stdlib.h:106:6: error: narrowing conversion of '-1' from 'int' to 'bool' [-Wnarrowing]
>   106 |      __THROW __attribute_pure__ __nonnull ((1)) __wur;
>       |      ^~~~~~~
…o pointer conversion

> ../../../../libvisual-plugins/plugins/input/mplayer/input_mplayer.c:179:18: error: incompatible integer to pointer conversion assigning to 'mplayer_data_t *' from 'int' [-Wint-conversion]
>         priv->mmap_area = mremap( priv->mmap_area, sizeof( mplayer_data_t ),
>                         ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@hartwork hartwork merged commit ffa5f5c into 0.4.x Nov 30, 2022
@hartwork hartwork deleted the 0.4.x-compiler-matrix branch November 30, 2022 12:55
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

Successfully merging this pull request may close these issues.

None yet

2 participants