1
0
mirror of https://github.com/TREX-CoE/trexio.git synced 2024-10-02 14:31:05 +02:00

Ignore warnings about unused (generated) variables

This commit is contained in:
q-posev 2022-04-22 13:40:27 +02:00
parent 30c940e592
commit 41c1bde0df

View File

@ -9,7 +9,7 @@ from setuptools import setup, Extension
def parse_setuppy_commands():
"""Check the commands and respond appropriately.
At the moment it is adapted to ignore checks for numpy, plgconfig, HDF5 flags
At the moment it is adapted to ignore checks for numpy, pkgconfig, HDF5 flags
when building the distribution tarball with sdist option.
"""
args = sys.argv[1:]
@ -93,7 +93,11 @@ pytrexio_module = Extension('pytrexio._pytrexio',
sources = [os.path.join(srcpath, code) for code in c_files],
include_dirs = [h5_cflags, srcpath, numpy_includedir],
libraries = ['hdf5', 'hdf5_hl'],
extra_compile_args = ['-Wno-discarded-qualifiers'],
extra_compile_args = [
'-Wno-discarded-qualifiers',
'-Wno-unused-variable',
'-Wno-unused-but-set-variable'
],
extra_link_args = [h5_ldflags]
)