added (copy/pasted) a complex definition to do it without including Compiler.h from WTF.
But now WARN_UNUSED is defined to __attribute__((__warn_unused_result__))
if the compiler is GCC or Clang. But it is a WebKit2 file, I don't
know if any other compiler is supported.
I think we can simply use __attribute__((__warn_unused_result__)) unconditionally.
Created attachment 263163 [details]
Created attachment 263164 [details]
Comment on attachment 263164 [details]
Clearing flags on attachment: 263164
Committed r191279: <http://trac.webkit.org/changeset/191279>
All reviewed patches have been landed. Closing bug.