Mark inline functions with unused; prevents compiler warning when they end up being unused.
Obtained from: OpenBSD
|  Differential  D20185  
Mark __inline functions which are not neccessarily used, with __unused. Authored by trasz on May 7 2019, 5:53 PM. Tags None Referenced Files 
 
 
 
 
 
 
 
 Subscribers 
Details 
 Mark inline functions with unused; prevents compiler warning when they end up being unused. Obtained from: OpenBSD 
Diff Detail 
 Event TimelineComment Actions It is very strange selection of functions. Why that set and not another ? Either we mark some functions as __unused when we get specific warnings, or we mark everything. Look for instance at r321512. Comment Actions Well, the commit message should be very different then. 'Which are not neccessary used' does not imply 'all inlines (or static)', and of course I did not even look into 1KLoC file to confirm that. |