From 05853eb861d522cc51c450efbabdc1470118cf5b Mon Sep 17 00:00:00 2001 From: Zack Zhiyuan Li Date: Mon, 4 Nov 2024 23:03:49 +0000 Subject: [PATCH] remove C++20 syntax --- examples/nexa-omni-audio/omni.cpp | 13 ++++++------- examples/qwen2-audio/qwen2.cpp | 13 ++++++------- 2 files changed, 12 insertions(+), 14 deletions(-) diff --git a/examples/nexa-omni-audio/omni.cpp b/examples/nexa-omni-audio/omni.cpp index 0982a79df..f55dc3d5c 100644 --- a/examples/nexa-omni-audio/omni.cpp +++ b/examples/nexa-omni-audio/omni.cpp @@ -523,13 +523,12 @@ bool omni_context_params_parse(int argc, char **argv, omni_context_params ¶m omni_context_params omni_context_default_params() { - omni_context_params params = { - .model = "", - .mmproj = "", - .file = "", - .prompt = "this conversation talks about", - .n_gpu_layers = -1, - }; + omni_context_params params; + params.model = ""; + params.mmproj = ""; + params.file = ""; + params.prompt = "this conversation talks about"; + params.n_gpu_layers = -1; return params; } diff --git a/examples/qwen2-audio/qwen2.cpp b/examples/qwen2-audio/qwen2.cpp index d14145835..be7d74d6d 100644 --- a/examples/qwen2-audio/qwen2.cpp +++ b/examples/qwen2-audio/qwen2.cpp @@ -523,13 +523,12 @@ bool omni_context_params_parse(int argc, char **argv, omni_context_params ¶m omni_context_params omni_context_default_params() { - omni_context_params params = { - .model = "", - .mmproj = "", - .file = "", - .prompt = "this conversation talks about", - .n_gpu_layers = -1, - }; + omni_context_params params; + params.model = ""; + params.mmproj = ""; + params.file = ""; + params.prompt = "this conversation talks about"; + params.n_gpu_layers = -1; return params; }