cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Curl build on HP-UX failed

From: Arunav Sanyal <arunav.sanyal91_at_gmail.com>
Date: Tue, 10 Sep 2013 14:01:12 +0530

Hi

I tried your fix daniel. It does not work. I unblocked myself my commenting
out the lines which checks it.

I tried to compile :-

# include <stdlib.h>
      int rand(int n);
      int rand(int n)
      {
        if(n)
          return ++n;
        else
          return n;
      }

int main (void)
{

      int i[2];
      int j = rand(i[0]);
      if(j)
        return j;

 ;
 return 0;
}

manually in a separate file. It just gives a warning. I think(based on what
I understand from the error), the compiler is supposed to return an error
and the compilation should fail. Is my understanding correct? If yes, then
I have to find the appropriate compiler flag for the same.

Yours sincerely

-- 
Arunav Sanyal
4th year undergraduate student
B.E (Hons) Computer Science
BITS Pilani K.K Birla Goa Campus

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-library
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2013-09-10