From: Martell Newsgroups: comp.os.msdos.djgpp Subject: Re: svga Date: Wed, 07 Jun 2000 22:13:08 -0400 Organization: InfiNet Lines: 23 Message-ID: <393F0134.32176EBB@ne.infi.net> References: <393A97A6 DOT 68C0EB6 AT ne DOT infi DOT net> <393A9867 DOT 8872DAEE AT it-he DOT org> <8heat2$cho$1 AT supernews DOT com> <393C606A DOT 174FA10D AT ne DOT infi DOT net> <393D5678 DOT 9F7AA087 AT it-he DOT org> <393D97B0 DOT B3A1D3C7 AT ne DOT infi DOT net> <393e0bc3 DOT 2365883 AT news DOT freeserve DOT net> NNTP-Posting-Host: ebtna010-0167.splitrock.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.04 [en] (Win95; U) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com its probably just a warning, but it doesnt compile. what can i do to tell GCC to compile despite warnings? Steamer wrote: > Martell wrote: > > > im having trouble compile the following line: > > > > if (strncmp(vesa_info.VESASignature, "VESA", 4) != 0) return -1; > > > > i get the following error: > > > > passing 'unsigned char *' as argument 1 of 'strncmp(const char *, const char *, long > > unsigned int)' changes signedness > > This is surely only a warning, not an error. > You can fix it by using a cast: > > if (strncmp((char*)(vesa_info.VESASignature), "VESA", 4) != 0) return -1;