]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
easyoptions: fix icc warning
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Jul 2022 21:38:36 +0000 (23:38 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 19 Jul 2022 09:01:15 +0000 (11:01 +0200)
    easyoptions.c(360): error #188: enumerated type mixed with another type

Ref: #9156
Reported-by: Matthew Thompson
Closes #9176

lib/easyoptions.c
lib/optiontable.pl

index 78a7ade6c88b52f66578c859967b5ac2d3522a1d..412aefd9900ebf252d0af9bcdd3f8732296644f9 100644 (file)
@@ -357,7 +357,7 @@ struct curl_easyoption Curl_easyopts[] = {
   {"XFERINFODATA", CURLOPT_XFERINFODATA, CURLOT_CBPTR, 0},
   {"XFERINFOFUNCTION", CURLOPT_XFERINFOFUNCTION, CURLOT_FUNCTION, 0},
   {"XOAUTH2_BEARER", CURLOPT_XOAUTH2_BEARER, CURLOT_STRING, 0},
-  {NULL, CURLOPT_LASTENTRY, 0, 0} /* end of table */
+  {NULL, CURLOPT_LASTENTRY, CURLOT_LONG, 0} /* end of table */
 };
 
 #ifdef DEBUGBUILD
index 31f8b0e3dca5cf04d1863857e2aefd6fda1eab5f..78ce580121f0e421fbb300d418304a1390d69e39 100644 (file)
@@ -103,7 +103,7 @@ for my $name (sort @names) {
 }
 
 print <<FOOT
-  {NULL, CURLOPT_LASTENTRY, 0, 0} /* end of table */
+  {NULL, CURLOPT_LASTENTRY, CURLOT_LONG, 0} /* end of table */
 };
 
 #ifdef DEBUGBUILD