cURL / Mailing Lists / curl-library / Single Mail

curl-library

Picky Metaware compiler

From: Gisle Vanem <giva_at_bgnett.no>
Date: Tue, 29 Aug 2006 18:54:52 +0200

I've managed to build libcurl under DOS using Metware's High-C
compiler. Most work involved changing config.dos.

This compiler is rather picky and warns for hostip4.c / 351:
  for(i=0; (curr = (struct in_addr *)he->h_addr_list[i]); i++) {

IMHO correctly:
  '=' encountered where '==' may have been intended.

Should I go ahead and fix these? Should simply be written as:
  for(i=0; (curr = (struct in_addr *)he->h_addr_list[i]) != NULL; i++) {

btw. ftp.c triggers 36 of these warnings!

--gv
Received on 2006-08-29