[commit: ghc] master: Remove redundant typedef (86e5eb9)
git at git.haskell.org
git at git.haskell.org
Mon Oct 26 10:13:15 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/86e5eb9ee1c89e60562133a5b844c3056f2e362b/ghc
>---------------------------------------------------------------
commit 86e5eb9ee1c89e60562133a5b844c3056f2e362b
Author: Gabor Greif <ggreif at gmail.com>
Date: Mon Oct 26 11:09:04 2015 +0100
Remove redundant typedef
$ git grep -n "typedef struct LibDwSession_ "
rts/Libdw.c:63:typedef struct LibDwSession_ LibDwSession;
rts/Libdw.h:22:typedef struct LibDwSession_ LibDwSession;
This trips up (e.g.) GCC v4.4.7.
>---------------------------------------------------------------
86e5eb9ee1c89e60562133a5b844c3056f2e362b
rts/Libdw.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/rts/Libdw.c b/rts/Libdw.c
index 86f07c3..70aee75 100644
--- a/rts/Libdw.c
+++ b/rts/Libdw.c
@@ -60,8 +60,6 @@ struct LibDwSession_ {
Backtrace *cur_bt; // The current backtrace we are collecting (if any)
};
-typedef struct LibDwSession_ LibDwSession;
-
static const Dwfl_Thread_Callbacks thread_cbs;
void libdw_free(LibDwSession *session) {
More information about the ghc-commits
mailing list