Remove unneeded void parameter in generated code. Fix some gcc4 errors.

This commit is contained in:
ocoursiere
2012-10-20 22:50:24 +00:00
parent bfc2956458
commit 497a01f5e6
7 changed files with 13 additions and 13 deletions

View File

@@ -155,7 +155,7 @@ BSerialPort_SetDataBits(BSerialPort *SerialPort, data_bits numBits)
* Descr:
*/
data_bits
BSerialPort_DataBits(BSerialPort *SerialPort, void)
BSerialPort_DataBits(BSerialPort *SerialPort)
{
return SerialPort->DataBits();
}
@@ -177,7 +177,7 @@ BSerialPort_SetStopBits(BSerialPort *SerialPort, stop_bits numBits)
* Descr:
*/
stop_bits
BSerialPort_StopBits(BSerialPort *SerialPort, void)
BSerialPort_StopBits(BSerialPort *SerialPort)
{
return SerialPort->StopBits();
}
@@ -199,7 +199,7 @@ BSerialPort_SetParityMode(BSerialPort *SerialPort, parity_mode which)
* Descr:
*/
parity_mode
BSerialPort_ParityMode(BSerialPort *SerialPort, void)
BSerialPort_ParityMode(BSerialPort *SerialPort)
{
return SerialPort->ParityMode();
}
@@ -210,7 +210,7 @@ BSerialPort_ParityMode(BSerialPort *SerialPort, void)
* Descr:
*/
void
BSerialPort_ClearInput(BSerialPort *SerialPort, void)
BSerialPort_ClearInput(BSerialPort *SerialPort)
{
SerialPort->ClearInput();
}
@@ -221,7 +221,7 @@ BSerialPort_ClearInput(BSerialPort *SerialPort, void)
* Descr:
*/
void
BSerialPort_ClearOutput(BSerialPort *SerialPort, void)
BSerialPort_ClearOutput(BSerialPort *SerialPort)
{
SerialPort->ClearOutput();
}

View File

@@ -450,7 +450,7 @@ BScreen_SetDPMS(BScreen *Screen, uint32 dpms_state)
* Effects:
***********************************************************************/
uint32
BScreen_DPMSState(BScreen *Screen, void)
BScreen_DPMSState(BScreen *Screen)
{
return Screen->DPMSState();
}
@@ -463,7 +463,7 @@ BScreen_DPMSState(BScreen *Screen, void)
* Effects:
***********************************************************************/
uint32
BScreen_DPMSCapabilites(BScreen *Screen, void)
BScreen_DPMSCapabilites(BScreen *Screen)
{
return Screen->DPMSCapabilites();
}

View File

@@ -1569,7 +1569,7 @@ BTextView_HideTyping(BTextView *TextView, bool enabled)
* Effects:
***********************************************************************/
bool
BTextView_IsTypingHidden(BTextView *TextView, void)
BTextView_IsTypingHidden(BTextView *TextView)
{
return TextView->IsTypingHidden();
}

View File

@@ -118,7 +118,7 @@ BView* BWindow_ChildAt(BWindow* Window, int32 index)
return Window->ChildAt(index);
}
int32 BWindow_CountChildren(BWindow* Window, void)
int32 BWindow_CountChildren(BWindow* Window)
{
return Window->CountChildren();
}

View File

@@ -379,7 +379,7 @@ BFilePanel_SetHideWhenDone(BFilePanel *FilePanel, bool z)
* Effects:
***********************************************************************/
bool
BFilePanel_HidesWhenDone(BFilePanel *FilePanel, void)
BFilePanel_HidesWhenDone(BFilePanel *FilePanel)
{
return FilePanel->HidesWhenDone();
}

View File

@@ -95,7 +95,7 @@ BVolume_SetTo(BVolume *Volume, dev_t dev)
* Descr:
*/
void
BVolume_Unset(BVolume *Volume, void)
BVolume_Unset(BVolume *Volume)
{
Volume->Unset();
}

View File

@@ -95,7 +95,7 @@ BVolumeRoster_StartWatching(BVolumeRoster *VolumeRoster, BMessenger msngr)
* Descr:
*/
void
BVolumeRoster_StopWatching(BVolumeRoster *VolumeRoster, void)
BVolumeRoster_StopWatching(BVolumeRoster *VolumeRoster)
{
VolumeRoster->StopWatching();
}
@@ -106,7 +106,7 @@ BVolumeRoster_StopWatching(BVolumeRoster *VolumeRoster, void)
* Descr:
*/
BMessenger
BVolumeRoster_Messenger(BVolumeRoster *VolumeRoster, void)
BVolumeRoster_Messenger(BVolumeRoster *VolumeRoster)
{
return VolumeRoster->Messenger();
}