Re:Typedefs & Linus
by larsu on Thursday October 14, 2010 @07:11AM
(#1790504)
Please don't. I once dealt with code like this and it becomes unreadable very quickly, especially if many different types are involved.
However, if printk would be declared with __attribute__((format(printf, 1, 2)) (I don't know if it is), gcc would warn if the format string contains specifiers which do not match the given types, regardless of any typedefs.
However, if printk would be declared with __attribute__((format(printf, 1, 2)) (I don't know if it is), gcc would warn if the format string contains specifiers which do not match the given types, regardless of any typedefs.