Skip to content

Commit 5d9edf8

Browse files
authored
Merge pull request #372 from GLVis/fix-secure
fix `MFEM_USE_GNUTLS` build
2 parents 05bfd06 + a08a123 commit 5d9edf8

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

glvis.cpp

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ class Session
157157
};
158158

159159
void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient,
160-
bool save_coloring, string plot_caption, bool headless = false)
160+
bool save_coloring, string plot_caption, bool secure,
161+
bool headless = false)
161162
{
162163
std::vector<Session> current_sessions;
163164
string data_type;
@@ -197,6 +198,8 @@ void GLVisServer(int portnum, bool save_stream, bool fix_elem_orient,
197198
return;
198199
}
199200
}
201+
#else
202+
MFEM_CONTRACT_VAR(secure);
200203
#endif
201204

202205
const int backlog = 128;
@@ -693,7 +696,7 @@ int main (int argc, char *argv[])
693696
std::thread serverThread{GLVisServer, portnum, save_stream,
694697
win.data_state.fix_elem_orient,
695698
win.data_state.save_coloring,
696-
win.plot_caption, win.headless};
699+
win.plot_caption, secure, win.headless};
697700

698701
// Start message loop in main thread
699702
MainThreadLoop(win.headless, persistent);

0 commit comments

Comments
 (0)