Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Functions in Swift must be annotated to allow discarding their results without a warning.


At least on on my system, ftruncate is annotated with __wur, so a simple -D_FORTIFY_SOURCE would suffice to produce a warning in this case.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: