diff --git a/glvis.cpp b/glvis.cpp index c68418b2..6f85c8d0 100644 --- a/glvis.cpp +++ b/glvis.cpp @@ -157,7 +157,8 @@ class Session }; void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient, - bool save_coloring, string plot_caption, bool headless = false) + bool save_coloring, string plot_caption, bool secure, + bool headless = false) { std::vector current_sessions; string data_type; @@ -197,6 +198,8 @@ void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient, return; } } +#else + MFEM_CONTRACT_VAR(secure); #endif const int backlog = 128; @@ -693,7 +696,7 @@ int main (int argc, char *argv[]) std::thread serverThread{GLVisServer, portnum, save_stream, win.data_state.fix_elem_orient, win.data_state.save_coloring, - win.plot_caption, win.headless}; + win.plot_caption, secure, win.headless}; // Start message loop in main thread MainThreadLoop(win.headless, persistent);