add LIKELY/UNLIKELY, WARN_UNUSED. Check return values of many rendering
functions