According to the clang docs I am seeing that warn on unused result should be enabled by default. But, it doesn\'t seem to work unless I use the function __attribute__((war
__attribute__((war