-
Notifications
You must be signed in to change notification settings - Fork 274
Warn when --malloc-may-fail has no effect #6657
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
base: develop
Are you sure you want to change the base?
Warn when --malloc-may-fail has no effect #6657
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #6657 +/- ##
===========================================
- Coverage 76.74% 76.74% -0.01%
===========================================
Files 1579 1579
Lines 182171 182185 +14
===========================================
+ Hits 139802 139811 +9
- Misses 42369 42374 +5
Continue to review full report at Codecov.
|
f7958df documented that malloc-may-fail needs to be used whenever the library is added, but users might not actually have had a chance to read updated documentation. Print a warning at runtime to make it more likely that users become aware.
274fd05
to
19e6e86
Compare
@tautschnig Please forgive me as I am slightly behind on reviewing and so am struggling a little with context. As I understand it #6576 is moving from the "patching I don't quite get why this PR is needed though; couldn't we have these parameters as globals rather than macros and so do the "change symbol table and regenerate |
[...]
That's a fair point, and I agree this is doable. Likely this is the more user-friendly approach than adding a warning. I will, however, want to build this on top of #6590 to avoid spamming goto binaries with unnecessary global variables. I'll change this PR to "Draft" and will re-work it. |
f7958df documented that malloc-may-fail needs to be used whenever the
library is added, but users might not actually have had a chance to read
updated documentation. Print a warning at runtime to make it more likely
that users become aware.