0999158088e0fb3715eb27703c8c4f7123d77144 galt Mon Sep 21 16:51:20 2015 -0700 added GNU-C attributes to function declarations in src/inc, src/hg/inc, and some CGIs so that the compiler can catch errors where the parameter list given by the user does not match their format string. These var-args functions are like printf. diff --git src/lib/sqlNum.c src/lib/sqlNum.c index 9bdd963..f3b2a7c 100644 --- src/lib/sqlNum.c +++ src/lib/sqlNum.c @@ -38,31 +38,31 @@ //errAbort("%s", errorMsg); va_list args; va_start(args, format); vaErrAbort(format, args); va_end(args); } } return res; } unsigned sqlUnsigned(char *s) /* Convert series of digits to unsigned integer about * twice as fast as atoi (by not having to skip white * space or stop except at the null byte.) */ { -return sqlUnsignedOrError(s, NULL, NULL); +return sqlUnsignedOrError(s, NULL); } unsigned sqlUnsignedInList(char **pS) /* Convert series of digits to unsigned integer about * twice as fast as atoi (by not having to skip white * space or stop except at the null byte.) * All of string is number. Number may be delimited by a comma. * Returns the position of the delimiter or the terminating 0. */ { char *s = *pS; unsigned res = 0; char *p = s; char c; while (((c = *(p++)) >= '0') && (c <= '9'))