Home | History | Annotate | Download | only in Sema

Lines Matching full:warn_unused_result

77 int t5f(void) __attribute__((warn_unused_result));
79 t5f(); // expected-warning {{ignoring return value of function declared with warn_unused_result}}
83 int fn1() __attribute__ ((warn_unused_result));
91 fn1(); // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
95 (void)0, fn1(); // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
99 int t7 __attribute__ ((warn_unused_result)); // expected-warning {{'warn_unused_result' attribute only applies to functions}}
102 int (*fn4)(void) __attribute__ ((warn_unused_result));
104 fn4(); // expected-warning {{ignoring return value of function declared with warn_unused_result attribute}}
107 void t9() __attribute__((warn_unused_result)); // expected-warning {{attribute 'warn_unused_result' cannot be applied to functions without return value}}