summaryrefslogtreecommitdiff
path: root/compat/compiler.h
diff options
context:
space:
mode:
Diffstat (limited to 'compat/compiler.h')
-rw-r--r--compat/compiler.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/compat/compiler.h b/compat/compiler.h
index 10dbb65937..e12e426404 100644
--- a/compat/compiler.h
+++ b/compat/compiler.h
@@ -1,7 +1,6 @@
#ifndef COMPILER_H
#define COMPILER_H
-#include "git-compat-util.h"
#include "strbuf.h"
#ifdef __GLIBC__
@@ -10,7 +9,7 @@
static inline void get_compiler_info(struct strbuf *info)
{
- int len = info->len;
+ size_t len = info->len;
#ifdef __clang__
strbuf_addf(info, "clang: %s\n", __clang_version__);
#elif defined(__GNUC__)
@@ -28,7 +27,7 @@ static inline void get_compiler_info(struct strbuf *info)
static inline void get_libc_info(struct strbuf *info)
{
- int len = info->len;
+ size_t len = info->len;
#ifdef __GLIBC__
strbuf_addf(info, "glibc: %s\n", gnu_get_libc_version());