From efa9186dc861bed7f06057480ab3f208e588a99f Mon Sep 17 00:00:00 2001 From: Francis Couture-Harpin Date: Mon, 9 Sep 2024 22:33:10 -0400 Subject: [PATCH] imatrix : avoid using designated initializers in C++ --- examples/imatrix/imatrix.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/imatrix/imatrix.cpp b/examples/imatrix/imatrix.cpp index 90ff9280c..758542905 100644 --- a/examples/imatrix/imatrix.cpp +++ b/examples/imatrix/imatrix.cpp @@ -283,9 +283,9 @@ void IMatrixCollector::save_imatrix(int32_t n_chunk) const { std::sort(to_store.begin(), to_store.end()); struct ggml_init_params params = { - .mem_size = data_size, - .mem_buffer = NULL, - .no_alloc = false, + /* .mem_size = */ data_size, + /* .mem_buffer = */ NULL, + /* .no_alloc = */ false, }; struct ggml_context * ctx = ggml_init(params); struct gguf_context * ctx_gguf = gguf_init_empty();