mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 10:05:29 +00:00
Get rid of compiler warnings.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5580
This commit is contained in:
parent
15519cf976
commit
afe2b7671f
@ -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;
|
||||
|
||||
@ -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]));
|
||||
|
||||
@ -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
|
||||
|
||||
@ -108,9 +108,7 @@ ThinkOfAShade()
|
||||
}
|
||||
|
||||
static floatish
|
||||
extract_colour(shade,factor)
|
||||
floatish shade;
|
||||
intish factor;
|
||||
extract_colour(floatish shade, intish factor)
|
||||
{
|
||||
intish i,j;
|
||||
|
||||
|
||||
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user