diff options
| author | Shawn O. Pearce <spearce@spearce.org> | 2008-11-03 16:29:56 -0800 |
|---|---|---|
| committer | Shawn O. Pearce <spearce@spearce.org> | 2008-11-03 18:42:54 -0800 |
| commit | fbbfdf9f13e92da2dc31b56081302f09fdb62e49 (patch) | |
| tree | b0a8568a7614806378a54db5706ee3b06ae58693 /include | |
| parent | b3a2f90e54bcb32a88d13539e5672993c5037638 (diff) | |
| download | libgit2-fbbfdf9f13e92da2dc31b56081302f09fdb62e49.tar.gz | |
Move GIT_NORETURN into test_lib.h only
We should never have a noreturn style function in the library
itself, as such a function would prevent the calling application
from handling error conditions the way it wants.
Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/git/common.h | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/include/git/common.h b/include/git/common.h index 98822557c..5841342a0 100644 --- a/include/git/common.h +++ b/include/git/common.h @@ -43,13 +43,6 @@ # define GIT_EXTERN(type) type #endif -/** Declare a function never returns to the caller. */ -#ifdef __GNUC__ -# define GIT_NORETURN __attribute__((__noreturn__)) -#else -# define GIT_NORETURN /* empty */ -#endif - /** Declare a function's takes printf style arguments. */ #ifdef __GNUC__ # define GIT_FORMAT_PRINTF(a,b) __attribute__((format (printf, a, b))) |
