"Markus Schaber" <m.scha...@3s-software.com> writes: >> Von: Philip Martin [mailto:philip.mar...@wandisco.com] >> >> I don't know if we can use that for bindf as I'm not sure if it would >> handle our "t" that consumes two arguments, but until we have some >> sort of automatic checking the fewer format letters the better. >> While we rely on manual checking the rule "all bound integers are >> 64bit" is easier to verify. > > Maybe > http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attr > ibutes helps (scroll down to the "format" section). It seems that > allows you to apply custom printf like checking.
I don't know to which bit you are referring. We already use the checking for svn_error_createf where the formatting is printf-like, but for svn_sqlite__bindf the formatting is sufficiently different from printf that I can't see how the gcc stuff would work. -- Philip