diff options
author | Borislav Stanimirov <b.stanimirov@abv.bg> | 2023-06-16 21:23:53 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-16 21:23:53 +0300 |
commit | 9cbf50c041a525d781c7764f493a5443924e4e38 (patch) | |
tree | 73c6331d8f95335616f3a20f71a9ad259431c3b7 /examples/quantize-stats/quantize-stats.cpp | |
parent | 3d0112261042b356621e93db3fa4c6798a5d098f (diff) |
build : fix and ignore MSVC warnings (#1889)
Diffstat (limited to 'examples/quantize-stats/quantize-stats.cpp')
-rw-r--r-- | examples/quantize-stats/quantize-stats.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/examples/quantize-stats/quantize-stats.cpp b/examples/quantize-stats/quantize-stats.cpp index 6e4f7e1e..6b8018ee 100644 --- a/examples/quantize-stats/quantize-stats.cpp +++ b/examples/quantize-stats/quantize-stats.cpp @@ -19,6 +19,10 @@ #include <thread> #include <mutex> +#if defined(_MSC_VER) +#pragma warning(disable: 4244 4267) // possible loss of data +#endif + struct quantize_stats_params { std::string model = "models/7B/ggml-model-f16.bin"; bool verbose = false; |