1
0
mirror of https://github.com/falk-werner/webfuse synced 2024-10-27 20:34:10 +00:00

fix: set C/C++ versions to make unit tests compile on systems where gnu++11 (or higher) is not default

This commit is contained in:
Falk Werner 2020-11-13 04:03:05 +01:00
parent f1a910b14f
commit 77ede52c92
2 changed files with 11 additions and 10 deletions

View File

@ -1,4 +1,5 @@
project('webfuse', 'c', 'cpp', version: '0.7.0', license: 'LGPL-3.0+') project('webfuse', 'c', 'cpp', version: '0.7.0', license: 'LGPL-3.0+',
default_options: ['c_std=gnu99', 'cpp_std=gnu++14'])
without_tests = get_option('without_tests') without_tests = get_option('without_tests')

View File

@ -364,14 +364,14 @@ private:
{ {
std::unique_lock<std::mutex> lock(mutex); std::unique_lock<std::mutex> lock(mutex);
command command = command::run; command actual_command = command::run;
if (!commands.empty()) if (!commands.empty())
{ {
command = commands.front(); actual_command = commands.front();
commands.pop(); commands.pop();
} }
return command; return actual_command;
} }
lws * wsi_; lws * wsi_;