From 5d5035220dee461ae6cde914c4a73fcdfc40e707 Mon Sep 17 00:00:00 2001 From: ygrek Date: Sat, 5 May 2018 23:28:06 -0700 Subject: [PATCH] make gcc happy --- curl-helper.c | 6 ++++++ opam | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/curl-helper.c b/curl-helper.c index 5fc6707..32b032e 100644 --- a/curl-helper.c +++ b/curl-helper.c @@ -1329,6 +1329,9 @@ static void new_part(Connection* conn, curl_mime* mime, value v_part) case 5: result = CURLE_OK; break; + default: + caml_failwith("Invalid MIMEPOST encoding value"); + break; } if (result != CURLE_OK) { @@ -1353,6 +1356,9 @@ static void new_part(Connection* conn, curl_mime* mime, value v_part) case 1: result = curl_mime_filedata(part, String_val(v_str)); break; + default: + caml_failwith("Invalid MIMEPOST data value"); + break; } if (result != CURLE_OK) { diff --git a/opam b/opam index 277718c..d237dd5 100644 --- a/opam +++ b/opam @@ -25,4 +25,4 @@ depends: [ "base-unix" "conf-libcurl" ] -depopts: ["lwt"] +depopts: ["lwt" "lwt_ppx"] -- 2.11.4.GIT