bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compile error in lib_mouse.c (gcc pragma)


From: Thomas Dickey
Subject: Re: Compile error in lib_mouse.c (gcc pragma)
Date: Mon, 13 Nov 2017 18:38:18 -0500
User-agent: Mutt/1.5.21 (2010-09-15)

On Mon, Nov 13, 2017 at 11:00:18PM +0100, vcoxvco wrote:
> Hi,
> 
> in lib_mouse.c, I get an error when compiling with older gcc:
>     gcc (SUSE Linux) 4.3.4 [gcc-4_3-branch revision 152973]
> 
> Error is:
> gcc -DHAVE_CONFIG_H -I../ncurses -I. -I../include  -D_GNU_SOURCE
> -DNDEBUG -m64 --param max-inline-insns-single=1200 -c
> ../ncurses/./base/lib_mouse.c -o ../objects/lib_mouse.o
> ../ncurses/./base/lib_mouse.c: In function 'load_gpm_library':
> ../ncurses/./base/lib_mouse.c:489: error: #pragma GCC diagnostic not allowed 
> inside functions
> ../ncurses/./base/lib_mouse.c:497: error: #pragma GCC diagnostic not allowed 
> inside functions
> gmake[2]: *** [../objects/lib_mouse.o] Error 1
> 
> 
> Below is a patch that works on this old version and on a recent gcc (7.2.1)
> (not tested with clang, though)

thanks (that should work).

-- 
Thomas E. Dickey <address@hidden>
https://invisible-island.net
ftp://ftp.invisible-island.net

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]