aboutsummaryrefslogtreecommitdiffstats
path: root/lib/erl_interface/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-01-04 18:24:31 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-01-04 18:24:31 +0100
commita69fb329f36b8c76b5bf5d2819e66b481e5a8b7f (patch)
tree2bcef4f81b6325a6de8d24a19e6a360ca3db6b6b /lib/erl_interface/src
parent7f2cd602577646e927c60cf381e88246e6ecee96 (diff)
parentf9ca630a95e1e2adb1b225bfb69e3101678183f3 (diff)
downloadotp-a69fb329f36b8c76b5bf5d2819e66b481e5a8b7f.tar.gz
otp-a69fb329f36b8c76b5bf5d2819e66b481e5a8b7f.tar.bz2
otp-a69fb329f36b8c76b5bf5d2819e66b481e5a8b7f.zip
Merge branch 'maint'
* maint: erts: Use re instead of regexp in testsuite erts: Remove unused code in testsuites orber: Use modern list guard in testsuite orber: Ignore unused variable in orber_tb.erl xmerl: Ignore unused variable in xmerl_uri.erl syntax_tool: Add missing type information hipe: Suppress warnings for unused variables hipe: Add type information to cfg_info record tools: Use literal formatting in erl_memory.c asn1: Remove unused variable in asn1_erl_nif.c ei: Remove unused variable in ei_format.c erts: Add missing prototype to DRIVER_INIT runtime_tools: Fix signedness in trace_ip_drv.c to_erl: Remove compiler warnings heart: Suppress compiler warnings erts: Remove compiler warnings in inet_gethost.c erts: Remove dead code in inet_gethost.c erts: Remove dead code
Diffstat (limited to 'lib/erl_interface/src')
-rw-r--r--lib/erl_interface/src/misc/ei_format.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/erl_interface/src/misc/ei_format.c b/lib/erl_interface/src/misc/ei_format.c
index cf50f12451..c1e5d998e4 100644
--- a/lib/erl_interface/src/misc/ei_format.c
+++ b/lib/erl_interface/src/misc/ei_format.c
@@ -149,7 +149,7 @@ static int pdigit(const char** fmt, ei_x_buff* x)
{
const char* start = *fmt;
char c;
- int len, dotp=0;
+ int dotp=0;
double d;
long l;
@@ -166,7 +166,6 @@ static int pdigit(const char** fmt, ei_x_buff* x)
break;
}
--(*fmt);
- len = *fmt - start;
if (dotp) {
sscanf(start, "%lf", &d);
return ei_x_encode_double(x, d);