From: Sup Yut Sum Date: Sat, 23 Feb 2013 15:09:30 +0000 (+0800) Subject: Fix unreferenced parameter warnings X-Git-Tag: REL_1.8.3.0_EXTERNAL~41 X-Git-Url: https://repo.or.cz/w/TortoiseGit.git/commitdiff_plain/db77f3e17ab3ff1f6ce219246a4db145c6d44244 Fix unreferenced parameter warnings Signed-off-by: Sup Yut Sum --- diff --git a/ext/gitdll/dllmain.c b/ext/gitdll/dllmain.c index d5bf8e1b5..7ffcbf45e 100644 --- a/ext/gitdll/dllmain.c +++ b/ext/gitdll/dllmain.c @@ -26,6 +26,8 @@ BOOL APIENTRY DllMain( HMODULE hModule, LPVOID lpReserved ) { + UNREFERENCED_PARAMETER(hModule); + UNREFERENCED_PARAMETER(lpReserved); switch (ul_reason_for_call) { case DLL_PROCESS_ATTACH: diff --git a/ext/gitdll/gitdll.c b/ext/gitdll/gitdll.c index 588ef2307..21c8c99a1 100644 --- a/ext/gitdll/gitdll.c +++ b/ext/gitdll/gitdll.c @@ -719,6 +719,7 @@ const char git_more_info_string[] = /* returns 0 for "no pager", 1 for "use pager", and -1 for "not specified" */ int check_pager_config(const char *cmd) { + UNREFERENCED_PARAMETER(cmd); return 0; } @@ -910,6 +911,7 @@ static int update_some(const unsigned char *sha1, const char *base, int baselen, const char *pathname, unsigned mode, int stage, void *context) { struct cache_entry *ce; + UNREFERENCED_PARAMETER(stage); ce = (struct cache_entry *)context; @@ -1024,6 +1026,7 @@ int git_get_config(const char *key, char *buffer, int size, char *git_path) char *local, *global, *globalxdg; const char *home, *system; struct config_buf buf; + UNREFERENCED_PARAMETER(git_path); buf.buf=buffer; buf.size=size; buf.seen = 0; @@ -1103,6 +1106,7 @@ const wchar_t *wget_windows_home_directory(void) int get_set_config(const char *key, char *value, CONFIG_TYPE type,char *git_path) { char * config_exclusive_filename = NULL; + UNREFERENCED_PARAMETER(git_path); switch(type) { case CONFIG_LOCAL: