Code

git-compat-util: don't assume value for undefined variable
authorRamkumar Ramachandra <artagnon@gmail.com>
Tue, 15 Nov 2011 17:31:09 +0000 (23:01 +0530)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Nov 2011 00:09:34 +0000 (16:09 -0800)
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>
git-compat-util.h

index 5ef8ff76f6fd262c3109d25d706ebd3db35c73fa..8b4dd5c022a160de5c68d83b6237799c23e6ae0a 100644 (file)
@@ -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)