Commit bf3c1e18 authored by unknown's avatar unknown

ndb -

  more compiler warnings...


storage/ndb/include/util/InputStream.hpp:
  more warnings
parent 6c9618d1
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
*/ */
class InputStream { class InputStream {
public: public:
virtual ~InputStream() {}
virtual char* gets(char * buf, int bufLen) = 0; virtual char* gets(char * buf, int bufLen) = 0;
}; };
...@@ -32,6 +33,7 @@ class FileInputStream : public InputStream { ...@@ -32,6 +33,7 @@ class FileInputStream : public InputStream {
FILE * f; FILE * f;
public: public:
FileInputStream(FILE * file = stdin); FileInputStream(FILE * file = stdin);
virtual ~FileInputStream() {}
char* gets(char * buf, int bufLen); char* gets(char * buf, int bufLen);
}; };
...@@ -42,6 +44,7 @@ class SocketInputStream : public InputStream { ...@@ -42,6 +44,7 @@ class SocketInputStream : public InputStream {
unsigned m_timeout; unsigned m_timeout;
public: public:
SocketInputStream(NDB_SOCKET_TYPE socket, unsigned readTimeout = 1000); SocketInputStream(NDB_SOCKET_TYPE socket, unsigned readTimeout = 1000);
virtual ~SocketInputStream() {}
char* gets(char * buf, int bufLen); char* gets(char * buf, int bufLen);
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment