[PATCH 2/3] xfree86: os-support: fix old-style function definition warnings
Alan Coopersmith
alan.coopersmith at oracle.com
Mon Oct 15 07:24:27 PDT 2012
On 10/14/12 11:44 PM, Yaakov (Cygwin/X) wrote:
> From: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
>
> Signed-off-by: Yaakov Selkowitz <yselkowitz at users.sourceforge.net>
> ---
> hw/xfree86/os-support/bus/nobus.c | 2 +-
> hw/xfree86/os-support/shared/agp_noop.c | 2 +-
> hw/xfree86/os-support/shared/ioperm_noop.c | 4 ++--
> hw/xfree86/os-support/stub/stub_init.c | 6 +++---
> 4 files changed, 7 insertions(+), 7 deletions(-)
>
> diff --git a/hw/xfree86/os-support/bus/nobus.c b/hw/xfree86/os-support/bus/nobus.c
> index dca58fe..dc36ecd 100644
> --- a/hw/xfree86/os-support/bus/nobus.c
> +++ b/hw/xfree86/os-support/bus/nobus.c
> @@ -1,5 +1,5 @@
> static void
> -__noop_to_appease_ar__()
> +__noop_to_appease_ar__(void)
> {
> return;
> }
> diff --git a/hw/xfree86/os-support/shared/agp_noop.c b/hw/xfree86/os-support/shared/agp_noop.c
> index 9c6ed4b..da486c0 100644
> --- a/hw/xfree86/os-support/shared/agp_noop.c
> +++ b/hw/xfree86/os-support/shared/agp_noop.c
> @@ -47,7 +47,7 @@ xf86GARTCloseScreen(int screenNum)
> }
>
> Bool
> -xf86AgpGARTSupported()
> +xf86AgpGARTSupported(void)
> {
> return FALSE;
> }
> diff --git a/hw/xfree86/os-support/shared/ioperm_noop.c b/hw/xfree86/os-support/shared/ioperm_noop.c
> index 30688c0..eeacee9 100644
> --- a/hw/xfree86/os-support/shared/ioperm_noop.c
> +++ b/hw/xfree86/os-support/shared/ioperm_noop.c
> @@ -36,13 +36,13 @@
> #include "xf86_OSlib.h"
>
> Bool
> -xf86EnableIO()
> +xf86EnableIO(void)
> {
> return TRUE;
> }
>
> void
> -xf86DisableIO()
> +xf86DisableIO(void)
> {
> return;
> }
> diff --git a/hw/xfree86/os-support/stub/stub_init.c b/hw/xfree86/os-support/stub/stub_init.c
> index 629675d..d3e0c3f 100644
> --- a/hw/xfree86/os-support/stub/stub_init.c
> +++ b/hw/xfree86/os-support/stub/stub_init.c
> @@ -5,12 +5,12 @@
> #include "xf86_OSlib.h"
>
> void
> -xf86OpenConsole()
> +xf86OpenConsole(void)
> {
> }
>
> void
> -xf86CloseConsole()
> +xf86CloseConsole(void)
> {
> }
>
> @@ -21,6 +21,6 @@ xf86ProcessArgument(int argc, char *argv[], int i)
> }
>
> void
> -xf86UseMsg()
> +xf86UseMsg(void)
> {
> }
Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>
--
-Alan Coopersmith- alan.coopersmith at oracle.com
Oracle Solaris Engineering - http://blogs.oracle.com/alanc
More information about the xorg-devel
mailing list