build: quiesce analyzer warnings

This commit is contained in:
Danny Robson 2015-09-09 18:42:00 +10:00
parent 0302df1ba8
commit 2741cf6375
2 changed files with 4 additions and 5 deletions

2
io.cpp
View File

@ -47,8 +47,6 @@ access_to_cflags (access_t a) {
flags = O_WRONLY | O_CREAT;
}
a = static_cast<access_t> (a & ~ACCESS_READWRITE);
return flags;
}

View File

@ -101,11 +101,12 @@ ipv4::ip::operator == (const ipv4::ip &rhs) const {
%%write data;
ipv4::ip::ip (const std::string &data) {
ipv4::ip::ip (const std::string &data)
{
bool __success = true;
uint8_t __octets[4] = { 0, 0, 0, 0 };
const char *octetstart = nullptr,
*octetend = nullptr;
const char *octetstart = data.data ();
const char *octetend = nullptr;
uint8_t __octet;
int cs = 0;