The MASM Forum

Projects => Poasm => Pelle's C compiler and tools => Topic started by: avcaballero on May 24, 2013, 07:32:35 PM

Title: Old style function definition
Post by: avcaballero on May 24, 2013, 07:32:35 PM
Hello, what PellesC means with this warning? For example in:

void ClearDIB () {
  memset(pMainDIB, 0, cdXSize*cdYSize*4);
}
Title: Re: Old style function definition
Post by: MichaelW on May 24, 2013, 11:01:10 PM
Adding a parameter of type void to the parameter list eliminated the warning.

void ClearDIB(void) {
  memset(pMainDIB, 0, cdXSize*cdYSize*4);
}

Title: Re: Old style function definition
Post by: Gunther on May 24, 2013, 11:01:37 PM
Hi Alfonso,

Quote from: avcaballero on May 24, 2013, 07:32:35 PM
Hello, what PellesC means with this warning? For example in:

void ClearDIB () {
  memset(pMainDIB, 0, cdXSize*cdYSize*4);
}


yes, Michael is right. Its the easy way.

Gunther