3 ms·
Functions in Swift must be annotated to allow discarding their results without a warning.
by saagarjha 7y ago
Functions in Swift must be annotated to allow discarding their results without a warning.
- cozzyd 7y agoAt 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.