Fix clang complaining about missing void in function prototypes.

This commit is contained in:
John Ralls 2015-02-23 15:12:33 -08:00
parent 025354b914
commit 1d5bffd1c2
2 changed files with 6 additions and 5 deletions

View File

@ -34,7 +34,7 @@ TW_UINT16 callDSM(pTW_IDENTITY, pTW_IDENTITY,
TW_UINT16, TW_MEMREF);
int twainIsAvailable(void);
void twainQuitApplication ();
void twainQuitApplication (void);
gboolean twainSetupCallback (pTW_SESSION twSession);
TW_HANDLE twainAllocHandle(size_t size);
@ -42,7 +42,7 @@ TW_MEMREF twainLockHandle (TW_HANDLE handle);
void twainUnlockHandle (TW_HANDLE handle);
void twainFreeHandle (TW_HANDLE handle);
int twainMain ();
int scanImage ();
int twainMain (void);
int scanImage (void);
#endif

View File

@ -146,7 +146,7 @@ TW_UINT16 twainCallback(pTW_IDENTITY pOrigin,
return TWRC_SUCCESS;
}
void twainQuitApplication ()
void twainQuitApplication (void)
{
QuitApplicationEventLoop();
}
@ -192,6 +192,7 @@ static void twainSetupMacUI()
/* Voodoo magic fix inspired by java_swt launcher */
/* Without this the icon setting doesn't work about half the time. */
CGrafPtr p = BeginQDContextForApplicationDockTile();
EndQDContextForApplicationDockTile(p);
@ -199,7 +200,7 @@ static void twainSetupMacUI()
}
int
twainMain()
twainMain(void)
{
EventLoopTimerRef timer;
OSStatus err;