Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Full Windows Support! #44

Merged
merged 12 commits into from
Jul 25, 2015
Prev Previous commit
Next Next commit
Unnecessary and causes warnings.
Sorry Mark!
  • Loading branch information
octalmage committed Jul 25, 2015
commit 25c3b844c53a57f6326013d927cc67d872d6b37d
7 changes: 0 additions & 7 deletions src/snprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,11 +410,6 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap);

/* declarations */

static char credits[] = "\n\
@(#)snprintf.c, v2.2: Mark Martinec, <mark.martinec@ijs.si>\n\
@(#)snprintf.c, v2.2: Copyright 1999, Mark Martinec. Frontier Artistic License applies.\n\
@(#)snprintf.c, v2.2: http://www.ijs.si/software/snprintf/\n";

#if defined(NEED_ASPRINTF)
int asprintf(char **ptr, const char *fmt, /*args*/ ...) {
va_list ap;
Expand Down Expand Up @@ -593,8 +588,6 @@ int portable_vsnprintf(char *str, size_t str_m, const char *fmt, va_list ap) {
char fmt_spec = '\0';
/* current conversion specifier character */

str_arg = credits;/* just to make compiler happy (defined but not used)*/
str_arg = NULL;
starting_p = p; p++; /* skip '%' */
/* parse flags */
while (*p == '0' || *p == '-' || *p == '+' ||
Expand Down