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

Meson: Add workaround for a glib-2.0 (< 2.67.1) internal bug #23

Merged
merged 1 commit into from
Feb 2, 2024

Conversation

wooksong
Copy link
Member

@wooksong wooksong commented Feb 2, 2024

Since glib-2.0( < 2.67.1) has a bug that incurs a warning, incompatible-pointer-types, on gcc (>= 11) as follows:

/usr/include/glib-2.0/glib/gatomic.h:112:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types]
112 | __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST);
| ^~~~~~~~~~~~~
This patch adds a workaround for this bug to the meson build script.

Signed-off-by: Wook Song [email protected]

Since glib-2.0( < 2.67.1) has a bug that incurs a warning,
incompatible-pointer-types, on gcc (>= 11) as follows:

/usr/include/glib-2.0/glib/gatomic.h:112:5: error: argument 2 of ‘__atomic_load’ discards ‘volatile’ qualifier [-Werror=incompatible-pointer-types]
  112 |     __atomic_load (gapg_temp_atomic, &gapg_temp_newval, __ATOMIC_SEQ_CST);   \
      |     ^~~~~~~~~~~~~
This patch adds a workaround for this bug to the meson build script.

Signed-off-by: Wook Song <[email protected]>
@jaeyun-jung jaeyun-jung merged commit 5ced452 into nnstreamer:main Feb 2, 2024
2 checks passed
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.

2 participants