Skip to content

ccan/meson: fix ccan/minmax compilation error with -Wall - #69

Open
iomartin wants to merge 1 commit into
SamsungDS:mainfrom
Eideticom:martin/Wall
Open

ccan/meson: fix ccan/minmax compilation error with -Wall#69
iomartin wants to merge 1 commit into
SamsungDS:mainfrom
Eideticom:martin/Wall

Conversation

@iomartin

Copy link
Copy Markdown
Contributor

When compiling with -Wall in Rockylinux 9.8, compilation fails with:

In file included from ../src/nvme/util.c:36:
../ccan/ccan/minmax/minmax.h:14:2: error: #error Sorry, minmax module requires statement expressions and typeof

This was tracked to an error in meson.build, with the following in the meson-log.txt:

testfile.c:5:9: error: 'x' is used uninitialized [-Werror=uninitialized]
  5 |       y = x;
    |       ~~^~~

Fix by initializing said variable.

When compiling with -Wall in Rockylinux 9.8, compilation fails with:

    In file included from ../src/nvme/util.c:36:
    ../ccan/ccan/minmax/minmax.h:14:2: error: #error Sorry, minmax module requires statement expressions and typeof

This was tracked to an error in meson.build, with the following in the
meson-log.txt:

    testfile.c:5:9: error: 'x' is used uninitialized [-Werror=uninitialized]
      5 |       y = x;
        |       ~~^~~

Fix by initializing said variable.

Signed-off-by: Martin Oliveira <martin.oliveira@eideticom.com>
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