The MASM Forum

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

Title: Old style function definition
Post by: caballero on May 24, 2013, 07:32:35 PM
Hello, what PellesC means with this warning? For example in:
Code: [Select]
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.
Code: [Select]
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,

Hello, what PellesC means with this warning? For example in:
Code: [Select]
void ClearDIB () {
  memset(pMainDIB, 0, cdXSize*cdYSize*4);
}

yes, Michael is right. Its the easy way.

Gunther