Skip to content

Commit

Permalink
cleanup code
Browse files Browse the repository at this point in the history
  • Loading branch information
jmalak committed Oct 7, 2019
1 parent de016fc commit 9410b11
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
14 changes: 11 additions & 3 deletions bld/setupgui/c/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,20 @@ bool ModifyStartup( bool uninstall )

// if( !uninstall ) {
#if defined( __NT__ )
#ifdef __AXP__
#ifdef __AXP__
ret = ModifyConfiguration( uninstall );
#else
#else
if( GetVariableBoolVal( "IsWin95" ) ) {
ret = ModifyAutoExec( uninstall );
} else {
ret = ModifyConfiguration( uninstall );
}
#endif
#endif
#elif defined( __UNIX__ )
#if !defined( GUI_IS_GUI )
/* unused parameters */ (void)uninstall;
#endif

// ret = ModifyAutoExec( uninstall );
#else
ret = ModifyAutoExec( uninstall );
Expand All @@ -213,6 +217,8 @@ bool ModifyAssociations( bool uninstall )
#ifdef __NT__
return( ModifyRegAssoc( uninstall ) );
#else
/* unused parameters */ (void)uninstall;

return( true );
#endif
}
Expand All @@ -223,6 +229,8 @@ bool ModifyUninstall( bool uninstall )
#ifdef __NT__
return( AddToUninstallList( uninstall ) );
#else
/* unused parameters */ (void)uninstall;

return( true );
#endif
}
Expand Down
4 changes: 4 additions & 0 deletions bld/uninstal/uninstal.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,8 @@ static void DeleteFolder( HWND hDlg, LPCSTR pszFolder, LPCSTR pszUninstallFile )
*/
static INT_PTR CALLBACK ProgressDlgProc( HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam )
{
/* unused parameters */ (void)hDlg; (void)message; (void)wParam; (void)lParam;

return( FALSE );

} /* ProgressDlgProc */
Expand All @@ -136,6 +138,8 @@ int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
LPITEMIDLIST pidlPrograms;
char szProgramsPath[MAX_PATH];

/* unused parameters */ (void)hPrevInstance; (void)lpCmdLine; (void)nCmdShow;

/*
* Load the title for message boxes.
*/
Expand Down
2 changes: 1 addition & 1 deletion contrib/zlib/trees.c
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ local void send_bits(s, value, length)
/* ===========================================================================
* Initialize the various 'constant' tables.
*/
local void tr_static_init()
local void tr_static_init( void )
{
#if defined(GEN_TREES_H) || !defined(STDC)
static int static_init_done = 0;
Expand Down

0 comments on commit 9410b11

Please sign in to comment.