Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
cremno
on July 1, 2015
|
parent
|
context
|
favorite
| on:
Fun with UB in C: returning uninitialized floats
Or just read the diagnostics and fix the code (or use UBSan). Clang outputs:
>variable 'c' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]
Consider applying for YC's Fall 2026 batch!
Applications
are open till July 27.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
>variable 'c' is used uninitialized whenever 'if' condition is false [-Wsometimes-uninitialized]