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

Compiler warnings / errors from new logging feature on Windows #1825

Open
shikokuchuo opened this issue Apr 24, 2024 · 1 comment · May be fixed by #1826
Open

Compiler warnings / errors from new logging feature on Windows #1825

shikokuchuo opened this issue Apr 24, 2024 · 1 comment · May be fixed by #1826

Comments

@shikokuchuo
Copy link
Contributor

Describe the bug

  1. Compiler warns of unused variable in win_clock.c
  2. Some Windows platforms do not have timespec_get (MinGW) so we should test for it like on POSIX, and provide an alternative, or have an option to disable logging entirely.

** Environment Details **

  • NNG 1.8.0
  • Various Windows build machines
  • GNU 10.4.0 under MinGW
  • Static Lib

Additional context
(1) is an easy fix and I'll provide a PR.
(2) as I do not make use of logging, I can live with a CMake check and compile time define - but others may want something that works.

@gdamore
Copy link
Contributor

gdamore commented Apr 25, 2024

Argh. MinGW again. I fricking hate that because it misses a lot of real Windows APIs. This one now too.

In the past I've said that I don't support it. I'm not sure what to do here. This needs to be at least a warning.

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

Successfully merging a pull request may close this issue.

2 participants