> This can be done by estabilishing the use of > __attribute__ ((__warn_unused_result__)) > (a GCC extension which can be used when gcc is used for compilation) > to generate warnings if the return values of critical functions > are not checked. I'll submit a patch (for demonsration only) > in this regard in a few moments.
I am curious on your approach. I assume that some configuration macros might be required for such compiler-specific extensions. http://gcc.gnu.org/onlinedocs/gcc-4.2.3/gcc/Function-Attributes.html How often was the option "ENABLE_MUST_CHECK" activated for Linux kernel compilation already? http://kernelnewbies.org/KernelJanitors/Todo/ReturnCodes Regards, Markus ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ ntfs-3g-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ntfs-3g-devel
