message: Use winsock init variable to work around unused variable error
diff: @@ -49,23 +49,31 @@ namespace mfem
  class WinsockWrapper
  {
  public:
  -#ifdef _WIN32
  WinsockWrapper()
  {
  +#ifdef _WIN32
  WSADATA wsaData;
  int err = WSAStartup(MAKEWORD(2,2), &wsaData);
  if (err != 0)
  {
  mfem::out << "Error occured during initialization of WinSock."
  << std::endl;
  + return;
  }
  +#endif
  + initialized = true;
  }
  +#ifdef _WIN32
  ~WinsockWrapper() { WSACleanup(); }
  +#endif
  WinsockWrapper(const WinsockWrapper&) = delete;
  WinsockWrapper& operator=(const WinsockWrapper&) = delete;
  -#endif
  +
  + bool Initialized() { return initialized; }
  +private:
  + bool initialized = false;
  };
  // If available, Winsock is initialized when this object is constructed.
  @@ -86,6 +94,11 @@ int socketbuf::open(const char hostname[], int port)
  struct sockaddr_in sa;
  struct hostent *hp;
  + if (!wsInit_.Initialized())
  + {
  + mfem_error("Attempting to open socket, but Winsock not initialized.");
  + }
  +
  close();
  setg(NULL, NULL, NULL);
  setp(obuf, obuf + buflen);
  