8000 build: allow building gen_xml standalone by julienmalik · Pull Request #24 · analogdevicesinc/iio-emu · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

build: allow building gen_xml standalone #24

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

julienmalik
Copy link

The CMakeLists.txt in the tools subdir is written as an independent project list file.

However, it failed to build as-is because the dependency to libxml2 was actually inherited by the root list file.

Simply find the libxml2 dep explicitely in this list file to fix it.

The CMakeLists.txt in the tools subdir is written as an
independent project list file.

However, it failed to build as-is because the dependency to libxml2
was actually inherited by the root list file.

Simply find the libxml2 dep explicitely in this list file to fix it.

Signed-off-by: Julien Malik <julien.malik@unseenlabs.fr>
The following warning was issued with gcc 11.4:

/iio-emu/tools/genxml.c: In function ‘get_attr_xml2’:
/iio-emu/tools/genxml.c:149:16: warning: ‘strnlen’ specified bound 255 exceeds source size 100 [-Wstringop-overread]
  149 |         len += strnlen(value, NAME_MAX);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~
/iio-emu/tools/genxml.c:149:16: warning: ‘strnlen’ specified bound 255 exceeds source size 100 [-Wstringop-overread]
/iio-emu/tools/genxml.c:149:16: warning: ‘strnlen’ specified bound 255 exceeds source size 100 [-Wstringop-overread]
In function ‘get_attr_xml’,
    inlined from ‘iio_channel_get_xml’ at /iio-emu/tools/genxml.c:285:15:
/iio-emu/tools/genxml.c:208:16: warning: ‘strnlen’ specified bound 255 exceeds source size 100 [-Wstringop-overread]
  208 |         len += strnlen(value, NAME_MAX);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Julien Malik <julien.malik@unseenlabs.fr>
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
0