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

undefine NDEBUG for tests #501

Merged
merged 1 commit into from
Dec 6, 2019
Merged

undefine NDEBUG for tests #501

merged 1 commit into from
Dec 6, 2019

Conversation

andy5995
Copy link
Contributor

resolves #406

I also added -UNDEBUG to tests/Makefile.am to make sure NDEBUG is always undefined for tests. (So if someone had debugging enabled, they won't have to re-run configure --enable-debug=off just to undefine it.)

Adding this arg to configure also will allow for turning on profiling, which can't really be used with the library by itself, afaik, but perhaps in the future a test may be added to utilize it.

@andy5995 andy5995 changed the title add configure arg to enable/disable debugging undefine NDEBUG for tests Jul 30, 2019
@harkue
Copy link

harkue commented Oct 12, 2019

LGTM ~

@hawicz hawicz merged commit 37b4da6 into json-c:master Dec 6, 2019
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 this pull request may close these issues.

Undefine NDEBUG for tests
3 participants