From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Aug 6 07:00:21 2012 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2EBF1065677 for ; Mon, 6 Aug 2012 07:00:21 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id BCC3A8FC1A for ; Mon, 6 Aug 2012 07:00:07 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.5/8.14.5) with ESMTP id q767072m069502 for ; Mon, 6 Aug 2012 07:00:07 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.5/8.14.5/Submit) id q767078E069501; Mon, 6 Aug 2012 07:00:07 GMT (envelope-from gnats) Resent-Date: Mon, 6 Aug 2012 07:00:07 GMT Resent-Message-Id: <201208060700.q767078E069501@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jan Beich Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id BDA6C106564A for ; Mon, 6 Aug 2012 06:49:59 +0000 (UTC) (envelope-from jbeich@tormail.org) Received: from server4.allsitecontrol.com (server4.allsitecontrol.com [198.136.50.18]) by mx1.freebsd.org (Postfix) with ESMTP id 8325C8FC0A for ; Mon, 6 Aug 2012 06:49:59 +0000 (UTC) Received: from tor19.anonymizer.ccc.de ([31.172.30.2]:34137 helo=internal.tormail.org) by server4.allsitecontrol.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.77) (envelope-from ) id 1SyH8T-001Blj-TJ for FreeBSD-gnats-submit@freebsd.org; Mon, 06 Aug 2012 02:49:55 -0400 Received: from jbeich by internal.tormail.org with local (Exim 4.63) (envelope-from ) id 1SyH7K-00044K-D3 for FreeBSD-gnats-submit@freebsd.org; Mon, 06 Aug 2012 06:48:43 +0000 Message-Id: <1SyH7K-00044K-D3@internal.tormail.org> Date: Mon, 06 Aug 2012 03:49:08 -0300 From: Jan Beich To: FreeBSD-gnats-submit@FreeBSD.org Cc: Subject: ports/170406: [patch] audio/oss: implicit declaration of 'device_set_desc' X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Aug 2012 07:00:22 -0000 >Number: 170406 >Category: ports >Synopsis: [patch] audio/oss: implicit declaration of 'device_set_desc' >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Aug 06 07:00:06 UTC 2012 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: CFLAGS += -Werror=implicit-function-declaration # for crash safety >Description: >How-To-Repeat: $ make CC=clang [...] os_freebsd.c:236:5: warning: implicit declaration of function 'device_set_desc' is invalid in C99 [-Wimplicit-function-declaration] device_set_desc (osdev->dip, name); ^ 1 warning generated. >Fix: --- clang.diff begins here --- Index: audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c =================================================================== --- audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c (revision 301674) +++ audio/oss/files/patch-kernel-OS-FreeBSD-os_freebsd.c (working copy) @@ -1,10 +1,11 @@ --- kernel/OS/FreeBSD/os_freebsd.c 2012-02-02 17:46:03.000000000 -0500 +++ kernel/OS/FreeBSD/os_freebsd.c 2012-02-20 12:58:46.000000000 -0500 -@@ -16,6 +16,7 @@ +@@ -16,6 +16,8 @@ #include "midi_core.h" #include #include +#include ++#include #include #include #include Index: audio/oss/Makefile =================================================================== --- audio/oss/Makefile (revision 301674) +++ audio/oss/Makefile (working copy) @@ -91,6 +91,10 @@ do-configure: (cd ${WRKSRC} && \ ${SETENV} ${CONFIGURE_ENV} ${PATCH_WRKSRC}/configure) +post-configure: + ${TOUCH} ${WRKSRC}/include/device_if.h + ${TOUCH} ${WRKSRC}/include/bus_if.h + do-install: ${INSTALL_PROGRAM} ${PROTO_BINDIR}/* ${PREFIX}/bin/ # @${ECHO_CMD} "OSSLIBDIR=${PREFIX}/lib/oss" > ${PROTO_ETCDIR}/oss.conf --- clang.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted: