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

List:       pykde
Subject:    Re: [PyQt] [PATCH 0/5] Fix several warnings when using current GCC
From:       Phil Thompson <phil () riverbankcomputing ! com>
Date:       2018-09-30 12:51:10
Message-ID: A019E2A0-39AF-4BDE-9175-5DAE9D7AFE80 () riverbankcomputing ! com
[Download RAW message or body]

On 29 Sep 2018, at 3:27 pm, Stefan Brüns <stefan.bruens@rwth-aachen.de> wrote:
> 
> GCC 8 throws a warning whenever 0/NULL is used for a null pointer
> constant. It also suggests to mark any overridden virtual function
> as "override". Third, casting of function pointers of apparently
> incompatible type has to be more explicit.
> 
> The first patch introduces some helper macros to allow use of
> the same identifier in the geneated code regardless if the code
> is compiled with a C compiler or as C++ in C++03 or C++11 mode.
> 
> The following 4 patches contain the actual fixes for the code
> generator.
> 
> Compilation has been tested with GCC7 and GCC8. Care has been taken
> to generate correct code also for e.g MSVC, although this is
> untested.
> 
> Stefan Brüns (5):
>  Add SIP_NULLPTR/SIP_OVERRIDE compatibility macros
>  Use SIP_NULLPTR for null pointer constants
>  Use SIP_NULLPTR if return value is a pointer to an object
>  Fix GCC cast-function-type warning
>  Fix GCC suggest-override warning
> 
> sipgen/gencode.c | 255 ++++++++++++++++++++++++++---------------------
> 1 file changed, 142 insertions(+), 113 deletions(-)
> 
> -- 
> 2.19.0

Thanks. I'll apply them after the next release (which is imminent).

Phil
_______________________________________________
PyQt mailing list    PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread] 

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