Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yurivict opened this issue Jun 11, 2021 · 4 comments
Closed

Comments

@yurivict
Copy link

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
Copy link
Collaborator

d-b-w commented Jun 11, 2021

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
Copy link
Author

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

@d-b-w
Copy link
Collaborator

d-b-w commented Jun 11, 2021

@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 #64 completely.

@yurivict
Copy link
Author

Ok, will do, thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants