sla89
sla89

Reputation: 347

Suppress subproject compile warnings

I am using meson build system in my C++ project where I have several dependencies like DPDK, flatbuffers and so on as subprojects.

While compiling my project, I get spammed with tons of warnings from all the subproject codebases, like this:

../subprojects/dpdk/lib/eal/include/generic/rte_spinlock.h: In the function 'void rte_spinlock_recursive_lock(rte_spinlock_recursive_t*)':
../subprojects/dpdk/lib/eal/include/generic/rte_spinlock.h:233:14: warning: '++' expression of 'volatile' qualified type is deprecated [-Wvolatile].
  233 | slr->count++;
      | ~~~~~^~~~~

This swallows my own code warnings, which I would really like to fix.

I have tried

... but meson just ignores everything.

What am I doing wrong, or is this really a bug in meson?

I have tried to get support from the meson developers without success:

There is even another ticket on this topic with no result: https://github.com/mesonbuild/meson/issues/11988

I also have a minimal example on github (see here: https://github.com/sla89/meson_isystem_dpdk) that can be used to reproduce the problem.

Upvotes: 0

Views: 44

Answers (0)

Related Questions