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 when disabling timing #44

Closed
horver opened this issue Jul 1, 2018 · 3 comments
Closed

Error when disabling timing #44

horver opened this issue Jul 1, 2018 · 3 comments

Comments

@horver
Copy link

horver commented Jul 1, 2018

I defined the MUNIT_DISABLE_TIMING macro and i get compile errors.

munit.c:904:10: error: variable ‘wc’ has initializer but incomplete type
   struct PsnipClockTimespec wc = { 0, };
          ^~~~~~~~~~~~~~~~~~
munit.c:903:29: error: storage size of ‘wc’ isn’t known
   struct PsnipClockTimespec wc = { 0, };

munit.c:906:24: error: ‘PSNIP_CLOCK_TYPE_WALL’ undeclared (first use in this function)
   psnip_clock_get_time(PSNIP_CLOCK_TYPE_WALL, &wc);
@nemequ
Copy link
Owner

nemequ commented Jul 1, 2018

I just pushed a patch (439de4a) to the staging branch, could you verify it works for you?

@horver
Copy link
Author

horver commented Jul 1, 2018

It works, thank you! Also thanks for the fast reply!

@nemequ
Copy link
Owner

nemequ commented Jul 1, 2018

Merged into master, thanks for the bug report!

@nemequ nemequ closed this as completed Jul 1, 2018
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