diff options
author | Jozef Matula <Jozef.Matula@iblsoft.com> | 2015-04-08 16:30:44 +0200 |
---|---|---|
committer | Jozef Matula <Jozef.Matula@iblsoft.com> | 2015-04-08 16:30:44 +0200 |
commit | 2a06976165cd6b5d4d217f479f099112991e9cf4 (patch) | |
tree | a661dd3bb528c56e426cde3656ee521d60e60666 /src/path.c | |
parent | 47f37400253210f483d84fb9c2ecf44fb5986849 (diff) | |
download | libgit2-2a06976165cd6b5d4d217f479f099112991e9cf4.tar.gz |
ISO C90 forbids mixed declarations and code
GIT_UNUSED() macro generates code therefore it should be used after
variable declarations.
Diffstat (limited to 'src/path.c')
-rw-r--r-- | src/path.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/path.c b/src/path.c index 993fcf60f..6a636bbd2 100644 --- a/src/path.c +++ b/src/path.c @@ -1006,12 +1006,12 @@ int git_path_direach( path_dirent_data de_data; struct dirent *de, *de_buf = (struct dirent *)&de_data; - GIT_UNUSED(flags); - #ifdef GIT_USE_ICONV git_path_iconv_t ic = GIT_PATH_ICONV_INIT; #endif + GIT_UNUSED(flags); + if (git_path_to_dir(path) < 0) return -1; @@ -1108,12 +1108,12 @@ int git_path_dirload( path_dirent_data de_data; struct dirent *de, *de_buf = (struct dirent *)&de_data; - GIT_UNUSED(flags); - #ifdef GIT_USE_ICONV git_path_iconv_t ic = GIT_PATH_ICONV_INIT; #endif + GIT_UNUSED(flags); + assert(path && contents); path_len = strlen(path); |