Add warn_unused_result check, attribute only supported by GCC 3.4 or later