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

[C++] Define and declare functions regardless of NDEBUG #22582

Closed
asfimport opened this issue Aug 9, 2019 · 2 comments
Closed

[C++] Define and declare functions regardless of NDEBUG #22582

asfimport opened this issue Aug 9, 2019 · 2 comments

Comments

@asfimport
Copy link
Collaborator

NDEBUG is not shipped in linker flags, so I got a linker error with release build on FixedSizeBinaryBuilder::UnsafeAppend(util::string_view value) call, since it makes a call to CheckValueSize.

This is somewhat a follow-up of ARROW-2313. I took the same path by removing NDEBUG ifdefs around CheckValueSize definition and declaration.

I applied the same fix to CheckUTF8Initialized as well after grepping the source code for "#ifndef NDEBUG" and figured out it has the same issue.

Reporter: Omer Ozarslan / @ozars
Assignee: Omer Ozarslan / @ozars

PRs and other links:

Note: This issue was originally created as ARROW-6190. Please see the migration documentation for further details.

@asfimport
Copy link
Collaborator Author

Omer Ozarslan / @ozars:
Submitted PR on #5049.

@asfimport
Copy link
Collaborator Author

Antoine Pitrou / @pitrou:
Issue resolved by pull request 5049
#5049

@asfimport asfimport added this to the 0.15.0 milestone Jan 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant