Get rid of compiler warnings.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5580
This commit is contained in:
Julian Seward 2006-01-22 01:09:37 +00:00
parent 15519cf976
commit afe2b7671f
5 changed files with 11 additions and 17 deletions

View File

@ -446,8 +446,7 @@ IsIdChar(ch)
static struct entry* hashtable[ N_HASH ];
static intish
Hash(s)
char *s;
Hash(char* s)
{
int r;
@ -466,7 +465,7 @@ Hash(s)
*/
static struct chunk*
MakeChunk()
MakeChunk(void)
{
struct chunk* ch;
struct datapoint* d;

View File

@ -66,9 +66,7 @@ intish nidents;
floatish THRESHOLD_PERCENT = DEFAULT_THRESHOLD;
int TWENTY = DEFAULT_TWENTY;
int main(argc, argv)
int argc;
char* argv[];
int main(int argc, char* argv[])
{
programname = copystring(Basename(argv[0]));

View File

@ -7,11 +7,11 @@
//#include "config.h"
#ifdef __STDC__
//#ifdef __STDC__
#define PROTO(x) x
#else
#define PROTO(x) ()
#endif
//#else
//#define PROTO(x) ()
//#endif
/* our own ASSERT macro (for C) */
#ifndef DEBUG

View File

@ -108,9 +108,7 @@ ThinkOfAShade()
}
static floatish
extract_colour(shade,factor)
floatish shade;
intish factor;
extract_colour(floatish shade, intish factor)
{
intish i,j;

View File

@ -4,14 +4,14 @@
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "Main.h"
#include "Error.h"
#include "Utilities.h"
extern void* malloc();
char*
Basename(name)
char* name;
Basename(char* name)
{
char* t;
@ -101,7 +101,6 @@ xrealloc(p, n)
size_t n;
{
void *r;
extern void *realloc();
r = realloc(p, n);
if (!r) {