Skip to content

Commit

Permalink
Merge pull request #24249 from wddgit/gcc8CompilerWarnings21
Browse files Browse the repository at this point in the history
GCC 8 Compiler Warning Fixes, remove unused function
  • Loading branch information
cmsbuild committed Aug 16, 2018
2 parents 04b4020 + 7459568 commit c4d6dfb
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
20 changes: 0 additions & 20 deletions IORawData/DTCommissioning/plugins/DTSpyHelper.cc
Expand Up @@ -173,26 +173,6 @@ DTCtcp::Connect(const char *host,int toport)
connected = true;
}

int
DTCtcp::WaitData(int timeout)
{
// return read (sock, buffer,size) ;
fd_set rfds;
struct timeval tv;

FD_ZERO(&rfds);
FD_SET(sock,&rfds);

tv.tv_sec = timeout;
tv.tv_usec = 0;

int retva = select (1,&rfds,nullptr,&rfds,&tv);
if (retva)
if (FD_ISSET(0,&rfds)) return 1;
else return -1;
else return 0;
}

int
DTCtcp::Receive(char *buffer,int size)
{
Expand Down
1 change: 0 additions & 1 deletion IORawData/DTCommissioning/plugins/DTSpyHelper.h
Expand Up @@ -45,7 +45,6 @@ class DTCtcp
unsigned long addr();
int Send(char * buffer,int size);
int Receive(char *buffer,int size);
int WaitData(int timeout);

};

Expand Down

0 comments on commit c4d6dfb

Please sign in to comment.