Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'es/utf8-stupid-compiler-workaround'
author
Junio C Hamano
<gitster@pobox.com>
Wed, 24 Jun 2015 19:21:46 +0000
(12:21 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Wed, 24 Jun 2015 19:21:46 +0000
(12:21 -0700)
A compilation workaround.
* es/utf8-stupid-compiler-workaround:
utf8: NO_ICONV: silence uninitialized variable warning
utf8.h
patch
|
blob
|
history
raw
(from parent 1:
4b64c8a
)
diff --git
a/utf8.h
b/utf8.h
index e7b2aa416844a0b2ccb2d2cf8a1bce68c4d60be1..5a9e94bee62fd2ed62dcbc82aee12bfc6d75e254 100644
(file)
--- a/
utf8.h
+++ b/
utf8.h
@@
-31,7
+31,9
@@
char *reencode_string_len(const char *in, int insz,
const char *in_encoding,
int *outsz);
#else
-#define reencode_string_len(a,b,c,d,e) NULL
+static inline char *reencode_string_len(const char *a, int b,
+ const char *c, const char *d, int *e)
+{ if (e) *e = 0; return NULL; }
#endif
static inline char *reencode_string(const char *in,