aboutsummaryrefslogtreecommitdiffstats
path: root/ext.c
diff options
context:
space:
mode:
authorjohn haque <j.eh@mchsi.com>2012-04-17 13:00:13 -0500
committerjohn haque <j.eh@mchsi.com>2012-04-17 13:00:13 -0500
commitb1062311a3caab9ec89c0f104bd9b4334174f23c (patch)
tree08a64713888026fb80fd80360343a51aebd8a593 /ext.c
parente729adf120f279fd65578a410ca8d2d93a56f0f0 (diff)
parentf0345a29c71a3215adaa0e2fdfefc0c439ea6561 (diff)
downloadegawk-b1062311a3caab9ec89c0f104bd9b4334174f23c.tar.gz
egawk-b1062311a3caab9ec89c0f104bd9b4334174f23c.tar.bz2
egawk-b1062311a3caab9ec89c0f104bd9b4334174f23c.zip
Merge branch 'master' into gawk_mpfr.
Diffstat (limited to 'ext.c')
-rw-r--r--ext.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/ext.c b/ext.c
index 6a87632d..0f56849d 100644
--- a/ext.c
+++ b/ext.c
@@ -7,7 +7,7 @@
*/
/*
- * Copyright (C) 1995 - 2001, 2003-2011 the Free Software Foundation, Inc.
+ * Copyright (C) 1995 - 2001, 2003-2012 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -33,12 +33,8 @@
#include <dlfcn.h>
-#ifdef __GNUC__
-static unsigned long long dummy; /* fake out gcc for dynamic loading? */
-#endif
-
/* do_ext --- load an extension at run-time: interface to load_ext */
-
+
NODE *
do_ext(int nargs)
{
@@ -70,12 +66,6 @@ load_ext(const char *lib_name, const char *init_func, NODE *obj)
int flags = RTLD_LAZY;
int *gpl_compat;
-#ifdef __GNUC__
- AWKNUM junk;
-
- junk = (AWKNUM) dummy;
-#endif
-
if (do_sandbox)
fatal(_("extensions are not allowed in sandbox mode"));