dthelp: Resolve 106 compiler warnings.

This commit is contained in:
Peter Howkins
2012-08-30 21:37:25 +01:00
parent f6bfbcb521
commit 71f8af6943
19 changed files with 238 additions and 232 deletions

View File

@@ -38,7 +38,7 @@
static void scanloop(LOGICAL prolog);
/* Main procedure */
void main(argc, argv)
int main(argc, argv)
int argc ;
char **argv ;
{
@@ -79,6 +79,7 @@ if (! (m_sysent[m_sysecnt] = m_openfirst()))
scanloop(FALSE);
/* At EOF */
m_done() ;
return EXIT_SUCCESS;
}
static void scanloop(LOGICAL prolog)
@@ -89,7 +90,7 @@ static char sopt[] =
static char name[] = "m_name = '%s'\n" ;
static char literal[] = "m_literal = '%s'\n" ;
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(___uxp__) || defined(__osf__)
#if defined(hpux) || defined(_AIX) || defined(sun) || defined(USL) || defined(___uxp__) || defined(__osf__) || defined(linux)
char buffer[M_LITLEN + 80] ;
#else
#define max4(a,b,c,d) (a>b&&a>c&&a>d) ? a : ((b>c&&b>d) ? b : (c>d ? c : d))

View File

@@ -127,7 +127,7 @@ int m_lower(
#endif
) ;
void main(
int main(
#if defined(M_PROTO)
int argc, char **argv
#endif

View File

@@ -169,7 +169,7 @@ delim.h.
#include "cont.h"
/* Main procedure */
void main(argc, argv)
int main(argc, argv)
int argc ;
char **argv ;
{

View File

@@ -51,7 +51,7 @@ void dumpdlmptr(M_NOPAR)
if (n) fputs(",\n", delim);
fprintf(delim, " %s", dlmptr[n]);
}
fprintf(delim, endif);
fprintf(delim, "%s", endif);
}
/* Output the generated data structures */
@@ -83,8 +83,8 @@ void dumptree(sparse)
else fprintf(context, "0");
if (i < ccount - 1) fprintf(context, ",\n ");
}
fprintf(delim, endif);
fprintf(context, endif);
fprintf(delim, "%s", endif);
fprintf(context, "%s", endif);
nextcon(sparse);
}
@@ -599,8 +599,8 @@ void nextcon(sparse)
if (i > 0) fprintf(context, ",\n");
fprintf(context, " %d", firstinrow);
}
fprintf(delim, endif);
fprintf(context, endif);
fprintf(delim, "%s", endif);
fprintf(context, "%s", endif);
}
else {
fprintf(context,
@@ -616,7 +616,7 @@ void nextcon(sparse)
if (i < ccount - 1) fprintf(context, ",");
fprintf(context, "\n");
}
fprintf(context, endif);
fprintf(context, "%s", endif);
}
}