-
-
Notifications
You must be signed in to change notification settings - Fork 308
Improve Z_NULL compatibility with zlib #1736
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
Conversation
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #1736 +/- ##
===========================================
- Coverage 82.90% 82.90% -0.01%
===========================================
Files 136 136
Lines 10280 10281 +1
Branches 2797 2798 +1
===========================================
Hits 8523 8523
Misses 1060 1060
- Partials 697 698 +1 ☔ View full report in Codecov by Sentry. |
mtl1979
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM... NULL was originally defined only for C++, but later got added to C too... Later C++ compilers use nullptr instead, so there is no "compatibility" reason to keep this defined as NULL.
|
Of course this is now triggered by |
|
zlib also declare https://github.com/madler/zlib/blob/5a82f71ed1dfc0bec044d9702463dbdf84ea3b71/zlib.h#L216 This macro is only for compatibility with zlib. Use |
|
I'm thinking of the case where you have a code base that was developed against zlib but may now build with either zlib or zlib-ng-comat as Linux distributions are now switching to... No biggie... just an unfortunate legacy decision... |
|
This change was made because defining the There is no reason to use the |
Fix #1733