cmake HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT examples

netdata/netdata CMakeLists.txt :707

check_c_source_compiles("
int my_function() __attribute__((warn_unused_result));
int main() {
        return my_function();
}
int my_function() {
        return 1;
}
" HAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT)