News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests

Main Menu

Old style function definition

Started by avcaballero, May 24, 2013, 07:32:35 PM

Previous topic - Next topic

avcaballero

Hello, what PellesC means with this warning? For example in:

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

MichaelW

Adding a parameter of type void to the parameter list eliminated the warning.

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

Well Microsoft, here's another nice mess you've gotten us into.

Gunther

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
You have to know the facts before you can distort them.