From: Jason Kircher User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3b) Gecko/20030112 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp Subject: GCC warning - incompatible pointer type Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Lines: 14 Message-ID: <1391a.6717$kz5.662443@news1.east.cox.net> Date: Sat, 08 Feb 2003 15:07:41 GMT NNTP-Posting-Host: 68.9.50.32 X-Complaints-To: abuse AT cox DOT net X-Trace: news1.east.cox.net 1044716861 68.9.50.32 (Sat, 08 Feb 2003 10:07:41 EST) NNTP-Posting-Date: Sat, 08 Feb 2003 10:07:41 EST Organization: Cox Communications To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Given buf is an array of 20 3-character strings that needs to be sorted, I used the following: char buf[20][4]; ... qsort (buf, 20, 4, strcmp); gcc -Wall -o foo foo.c gcc gives me the warning: warning: passing arg 4 of `qsort' from incompatible pointer type The program works fine, however, it's just that the warning spooks me. Other than not saying -Wall, any idea how to get rid of this warning?