conda-forge / libflint-feedstock

A conda-smithy repository for libflint.
BSD 3-Clause "New" or "Revised" License
1 stars 5 forks source link

Warnings on macOS #26

Open saraedum opened 2 years ago

saraedum commented 2 years ago

When using flint through cppyy on macOS, I get this warning:

      In file included from /usr/local/miniconda/envs/test/include/python3.10/CPyCppyy/API.h:26:
      In file included from /usr/local/miniconda/envs/test/include/python3.10/Python.h:8:
      /usr/local/miniconda/envs/test/include/python3.10/pyconfig.h:1615:9: warning: '_GNU_SOURCE' macro redefined [-Wmacro-redefined]
      #define _GNU_SOURCE 1
              ^
      /usr/local/miniconda/envs/test/include/flint/thread_pool.h:17:9: note: previous definition is here
      #define _GNU_SOURCE

This is version 2.8.4 hd3cc997_ntl_100.

While such a warning is not a big deal, it breaks Python doctesting, e.g., the doctest expects no output, but this warning is printed instead.