summaryrefslogtreecommitdiff
path: root/mesonbuild/modules/pkgconfig.py
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2024-02-07 11:12:22 +0100
committerEli Schwartz <eschwartz93@gmail.com>2024-09-11 09:36:53 -0400
commitfa8bd9306c01a1268d1a4cd7417ad753b1aa09e1 (patch)
tree5725a17fb953d9675165ac1086318ed63ccf1f9b /mesonbuild/modules/pkgconfig.py
parenta22a50a6739160bdf93a5a11f5026112007ccf4e (diff)
downloadmeson-fa8bd9306c01a1268d1a4cd7417ad753b1aa09e1.tar.gz
compilers: avoid -Wunused-value compiler warning in CLikeCompiler.has_type()
Otherwise, `CFLAGS='-Wall -Werror' meson build` can fail detection: Running compile: Working directory: ./project/build/meson-private/tmpk86bgc04 Code: #include <sys/types.h> void bar(void) { sizeof(loff_t); } ----------- Command line: `cc ./project/build/meson-private/tmpk86bgc04/testfile.c -o ./project/build/meson-private/tmpk86bgc04/output.obj -c -Werror -Wall -D_FILE_OFFSET_BITS=64 -O0 -std=gnu99` -> 1 stderr: ./project/build/meson-private/tmpk86bgc04/testfile.c: In function 'bar': ./project/build/meson-private/tmpk86bgc04/testfile.c:3:13: error: statement with no effect [-Werror=unused-value] 3 | sizeof(loff_t); | ^~~~~~ cc1: all warnings being treated as errors ----------- Checking for type "loff_t" : NO
Diffstat (limited to 'mesonbuild/modules/pkgconfig.py')
0 files changed, 0 insertions, 0 deletions