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

Additional fix for CONC-668: #237

Open
wants to merge 1 commit into
base: 3.1
Choose a base branch
from

Conversation

heitbaum
Copy link

Fix build error on 32-bit systems.

/var/media/DATA/home-rudi/LibreELEC.kernel11/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb/ma_context.c: In function 'my_context_spawn':
/var/media/DATA/home-rudi/LibreELEC.kernel11/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb/ma_context.c:104:3: error: 'u.a[1]' may be used uninitialized [-Werror=maybe-uninitialized]
  104 |   makecontext(&c->spawned_context, my_context_spawn_internal, 2,
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  105 |               u.a[0], u.a[1]);
      |               ~~~~~~~~~~~~~~~
/var/media/DATA/home-rudi/LibreELEC.kernel11/build.LibreELEC-H3.arm-12.0-devel/build/mariadb-connector-c-3.3.7/libmariadb/ma_context.c:92:32: note: 'u.a[1]' was declared here
   92 |   union pass_void_ptr_as_2_int u;
      |                                ^
cc1: all warnings being treated as errors
[107/142] Building C object unittest/libmariadb/CMakeFiles/ps_bugs.dir/ps_bugs.c.o
ninja: build stopped: subcommand failed.

Fix build error on 32-bit systems.
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.

1 participant