false positive “ot”
[alioth/cvs.git] / lib / vasnprintf.c
index 95847d7..1726a4f 100644 (file)
@@ -26,7 +26,9 @@
 # include <config.h>
 #endif
 #ifndef IN_LIBINTL
+# ifdef HAVE_ALLOCA_H
 # include <alloca.h>
+# endif
 #endif
 
 /* Specification.  */
@@ -596,11 +598,12 @@ VASNPRINTF (CHAR_T *resultbuf, size_t *lengthp, const CHAR_T *format, va_list ar
                  {
                    size_t maxlen;
                    int count;
-                   int retcount;
+#if USE_SNPRINTF
+                   int retcount = 0;
+#endif
 
                    maxlen = allocated - length;
                    count = -1;
-                   retcount = 0;
 
 #if USE_SNPRINTF
 # define SNPRINTF_BUF(arg) \