1
0
mirror of https://github.com/wjwwood/serial.git synced 2026-01-22 19:54:57 +08:00

Fixed some warnings from clang

This commit is contained in:
William Woodall 2012-04-02 21:20:45 -05:00
parent a8259fcda2
commit 81fc77dd47
2 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,6 @@ Serial::SerialImpl::open ()
case ENFILE:
case EMFILE:
THROW (IOException, "Too many file handles open.");
break;
default:
THROW (IOException, errno);
}

View File

@ -152,6 +152,7 @@ Serial::readline (string &buffer, size_t size, string eol)
break; // Reached the maximum read length
}
}
buffer.append(reinterpret_cast<const char*> (buffer_), read_so_far);
return read_so_far;
}