[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-xorg-devel
Subject:    Re: [xproto] _X_NONNULL and C++ 11
From:       Alan Coopersmith <alan.coopersmith () oracle ! com>
Date:       2017-05-27 18:07:29
Message-ID: 7698f7fb-dfc1-8aff-8206-bd3987e6b1e0 () oracle ! com
[Download RAW message or body]

On 05/27/17 02:02 AM, Matthieu Herrb wrote:
> Hi,
> 
> Marc Espie recently found out that the X_NONNULL macro in Xfuncproto.h
> is generating spurious warnings when included in C++ code build with
> clang++ -std=c++11.
> 
> Other OpenBSD developper tried to find uses of the macro in the wild
> and didn't find any, even in the X.Org lib app or xserver tree.
> 
> So, should this macro definition be removed alltogether (acking that
> no-one cares to use it) or just apply the patch below ?

I could swear there was some use for it when it was added, but I can't
find any either in the sources, nor in the introducing commit:
https://cgit.freedesktop.org/xorg/proto/x11proto/commit/Xfuncproto.h.in?id=217d1dae0093ccaaac59a4fa42000e732492cb66


Jeremy - did you ever add usage of this somewhere we're not seeing, such
as in the macosforge repos?

-- 
	-Alan Coopersmith-              alan.coopersmith@oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc
_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic