[PATCH] Warning fix for shm.c

Alan Coopersmith alan.coopersmith at oracle.com
Fri Oct 14 15:21:36 PDT 2011


On 10/13/11 04:33 AM, Jon TURNEY wrote:
> shm.c: In function 'CheckForShmSyscall':
> shm.c:182:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
>
> Signed-off-by: Jon TURNEY<jon.turney at dronecode.org.uk>
> ---
>   Xext/shm.c |    2 +-
>   1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/Xext/shm.c b/Xext/shm.c
> index 9c8beb2..f2d84be 100644
> --- a/Xext/shm.c
> +++ b/Xext/shm.c
> @@ -179,7 +179,7 @@ SigSysHandler(int signo)
>
>   static Bool CheckForShmSyscall(void)
>   {
> -    void (*oldHandler)();
> +    void (*oldHandler)(int);
>       int shmid = -1;
>
>       /* If no SHM support in the kernel, the bad syscall will generate SIGSYS */

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-        alan.coopersmith at oracle.com
	 Oracle Solaris Platform Engineering: X Window System



More information about the xorg-devel mailing list