diff options
-rw-r--r-- | ChangeLog | 1 | ||||
-rw-r--r-- | src/memalloc.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 18ed330..768374a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ 2011-05-23 Jim Meyering <meyering@redhat.com> * Avoid gcc warning: variable 'oldstackp' set but not used. + * Avoid clang warning about dead store to "size". 2011-05-22 Jonathan Nieder <jrnieder@gmail.com> diff --git a/src/memalloc.c b/src/memalloc.c index 9fea067..d8e4413 100644 --- a/src/memalloc.c +++ b/src/memalloc.c @@ -273,7 +273,7 @@ char * makestrspace(size_t newlen, char *p) { size_t len = p - stacknxt; - size_t size = stackblocksize(); + size_t size; for (;;) { size_t nleft; |