summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorRamkumar Ramachandra <artagnon@gmail.com>2011-11-15 23:01:09 +0530
committerJunio C Hamano <gitster@pobox.com>2011-11-15 16:09:34 -0800
commite4ac953b2a1e33fedf210ac59394db480a6ade33 (patch)
tree165a5b99a4dfcc2c65be333178cc47b8f63d1bcd /git-compat-util.h
parent5e12e78e52b4219ce27c14404351648fd47854cc (diff)
downloadgit-e4ac953b2a1e33fedf210ac59394db480a6ade33.tar.gz
git-compat-util: don't assume value for undefined variable
Suggested-by: Thomas Rast <trast@student.ethz.ch> Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 5ef8ff76f6..8b4dd5c022 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -219,7 +219,7 @@ extern char *gitbasename(char *);
#define find_last_dir_sep(path) strrchr(path, '/')
#endif
-#if __HP_cc >= 61000
+#if defined(__HP_cc) && (__HP_cc >= 61000)
#define NORETURN __attribute__((noreturn))
#define NORETURN_PTR
#elif defined(__GNUC__) && !defined(NO_NORETURN)