encukou / py3c

A Python 2/3 compatibility layer for C extensions
http://py3c.readthedocs.org
MIT License
59 stars 20 forks source link

Avoid GCC warnings on unused functions #42

Closed encukou closed 3 years ago

encukou commented 3 years ago

Fixes: https://github.com/encukou/py3c/issues/40 (for GCC)

Making the functions inline would be better here, but inline is not available in C90.

Includes tests to avoid future regressions.

encukou commented 3 years ago

@javaprog, could you take a look at this? I don't have a clang-built Python handy.

javaprog commented 3 years ago

@javaprog, could you take a look at this? I don't have a clang-built Python handy.

Will try this in our environment with both GCC and Clang.

javaprog commented 3 years ago

This works like a charme, thanks a lot!