diff --git a/core/Addfunc.cc b/core/Addfunc.cc
index a6d5b84e199b61d8d03ad614152de2390679f15b..7ddd2ae2339f69bd602ddd1c78e7e3dacd20bb16 100644
--- a/core/Addfunc.cc
+++ b/core/Addfunc.cc
@@ -16,6 +16,7 @@
  *   Raduly, Csaba
  *   Szabo, Bence Janos
  *   Szabo, Janos Zoltan – initial implementation
+ *   Szalai, Gabor
  *   Zalanyi, Balazs Andor
  *
  ******************************************************************************/
@@ -1261,7 +1262,6 @@ double str2float(const CHARSTRING& value)
   size_t end = value_len;
   boolean leading_ws = FALSE;
   boolean trailing_ws = FALSE;
-  boolean leading_zero = FALSE;
   double ret_val;
   while (is_whitespace(value_str[start])) {
     leading_ws = TRUE;
@@ -1321,7 +1321,6 @@ double str2float(const CHARSTRING& value)
         if (c == '.') state = S_FIRST_F;
         else if (c == 'E' || c == 'e') state = S_INITIAL_E;
         else if (c >= '0' && c <= '9') {
-          leading_zero = TRUE;
           state = S_MORE_M;
         } else state = S_ERR;
         break;
@@ -1353,7 +1352,6 @@ double str2float(const CHARSTRING& value)
         break;
       case S_ZERO_E:
         if (c >= '0' && c <= '9') {
-          leading_zero = TRUE;
           state = S_MORE_E;
         }
         else state = S_ERR;
@@ -1405,13 +1403,6 @@ double str2float(const CHARSTRING& value)
     TTCN_Logger::log_char('.');
     TTCN_warning_end();
   }
-  if (leading_zero) {
-    TTCN_warning_begin("Leading zero digit was detected in the argument "
-      "of function str2float(): ");
-    value.log();
-    TTCN_Logger::log_char('.');
-    TTCN_warning_end();
-  }
   if (trailing_ws) {
     TTCN_warning_begin("Trailing whitespace was detected in the argument "
       "of function str2float(): ");