author | Michal Rokos <rokos@nextsoft.cz> | |
Mon, 7 Mar 2011 12:13:15 +0000 (13:13 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 8 Mar 2011 18:58:00 +0000 (10:58 -0800) | ||
commit | b6ab349b184b3a33c7bcc03521dafed3f9df380a | |
tree | 026941f6103671b97a53ff817b542064357e0410 | tree | snapshot |
parent | 987893d82df390d7ed72e46f0cf8340d140952c1 | commit | diff |
git-compat-util.h: Honor HP C's noreturn attribute
HP C for Integrity servers (Itanium) gained support for noreturn
attribute sometime in 2006. It was released in Compiler Version
A.06.10 and made available in July 2006.
The __HP_cc define detects the HP C compiler version. Precede the
__GNUC__ check so it works well when compiling with HP C using -Agcc
option that enables partial support for the GNU C dialect. The -Agcc
defines the __GNUC__ too.
Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
HP C for Integrity servers (Itanium) gained support for noreturn
attribute sometime in 2006. It was released in Compiler Version
A.06.10 and made available in July 2006.
The __HP_cc define detects the HP C compiler version. Precede the
__GNUC__ check so it works well when compiling with HP C using -Agcc
option that enables partial support for the GNU C dialect. The -Agcc
defines the __GNUC__ too.
Signed-off-by: Michal Rokos <michal.rokos@nextsoft.cz>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h | diff | blob | history |