From owner-freebsd-questions Fri Jan 10 16:58:18 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D685C37B401 for ; Fri, 10 Jan 2003 16:58:16 -0800 (PST) Received: from corbulon.video-collage.com (corbulon.video-collage.com [64.35.99.179]) by mx1.FreeBSD.org (Postfix) with ESMTP id 13F6343ED8 for ; Fri, 10 Jan 2003 16:58:16 -0800 (PST) (envelope-from mteterin@250-217.customer.cloud9.net) Received: from mteterin.us.murex.com (250-217.customer.cloud9.net [168.100.250.217]) by corbulon.video-collage.com (8.12.6/8.12.6) with ESMTP id h0B0wDAj041683 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Fri, 10 Jan 2003 19:58:14 -0500 (EST) (envelope-from mteterin@250-217.customer.cloud9.net) Received: from mteterin.us.murex.com (localhost [127.0.0.1]) by mteterin.us.murex.com (8.12.6/8.12.6) with ESMTP id h0B11xWu059035 for ; Fri, 10 Jan 2003 20:02:00 -0500 (EST) (envelope-from mteterin@mteterin.us.murex.com) Received: (from mteterin@localhost) by mteterin.us.murex.com (8.12.6/8.12.6/Submit) id h0B0JNK7058910 for questions@FreeBSD.org; Fri, 10 Jan 2003 19:19:23 -0500 (EST) Date: Fri, 10 Jan 2003 19:19:23 -0500 (EST) From: Mikhail Teterin Message-Id: <200301110019.h0B0JNK7058910@mteterin.us.murex.com> To: questions@FreeBSD.org Subject: What's wrong (-Wconversion)? X-Scanned-By: MIMEDefang 2.21 (www . roaringpenguin . com / mimedefang) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG The following little file #include uint16_t f(uint16_t in) { return htons(in); } , when compiled with -Wconversion: cc -Wconversion -c t.c , gives the following mistery warning: t.c: In function `f': t.c:4: warning: passing arg 1 of `__bswap16' with different width due to prototype The compiler is: Using built-in specs. Configured with: FreeBSD/i386 system compiler Thread model: posix gcc version 3.2.1 [FreeBSD] 20021119 (release) Any clues? Thanks! -mi To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message