schrodinger / coordgenlibs

Schrodinger-developed 2D Coordinate Generation
BSD 3-Clause "New" or "Revised" License
42 stars 28 forks source link

error: unused function 'getTempFileProjDir' [-Werror,-Wunused-function] #100

Closed yurivict closed 3 years ago

yurivict commented 3 years ago

Build of coordgenlibs-2.0.3 fails:

/usr/ports/science/coordgenlibs/work/coordgenlibs-2.0.3/sketcherMinimizer.cpp:3520:15: error: unused function 'getTempFileProjDir' [-Werror,-Wunused-function]
static string getTempFileProjDir()
              ^
1 error generated.

clang-11 FreeBSD 13

d-b-w commented 3 years ago

This is an odd report, because that function is used 8 lines later. The function is defined (and used) conditionally on the USE_MAEPARSER macro.

Do you know if you have USE_MAEPARSER set in your cmake? Or, like, what it's set to?

yurivict commented 3 years ago

Sorry, port patch patched away the use of this function.

d-b-w commented 3 years ago

@yurivict - if you do have USE_MAEPARSER enabled, I'd recommend turning it off. The build should be tidier and more robust that way. It also sidesteps https://github.com/schrodinger/coordgenlibs/issues/64 completely.

yurivict commented 3 years ago

Ok, will do, thank you.