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:
parent
a8259fcda2
commit
81fc77dd47
@ -88,7 +88,6 @@ Serial::SerialImpl::open ()
|
||||
case ENFILE:
|
||||
case EMFILE:
|
||||
THROW (IOException, "Too many file handles open.");
|
||||
break;
|
||||
default:
|
||||
THROW (IOException, errno);
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user