RE: [PHP-CVS] com php-src: Disable C4101 warnings entirely on Windows: Zend/zend_vm_execute.h Zend/zend_vm_gen.php

From: Date: Sat, 10 Dec 2016 09:55:10 +0000
Subject: RE: [PHP-CVS] com php-src: Disable C4101 warnings entirely on Windows: Zend/zend_vm_execute.h Zend/zend_vm_gen.php
References: 1 2 3  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-96286@lists.php.net to get a copy of this message
Hi Kalle, > -----Original Message----- > From: kalle.php@gmail.com [mailto:kalle.php@gmail.com] On Behalf Of Kalle > Sommer Nielsen > Sent: Saturday, December 10, 2016 3:30 AM > To: Anatol Belski <anatol.php@belski.net>; Dmitry Stogov <Dmitry@zend.com> > Cc: php-cvs@lists.php.net > Subject: Re: [PHP-CVS] com php-src: Disable C4101 warnings entirely on > Windows: Zend/zend_vm_execute.h Zend/zend_vm_gen.php > > Hi Anatol, Dmitry > > 2016-12-08 12:15 GMT+01:00 Anatol Belski <anatol.php@belski.net>: > > Why disabling completely? The header is also included in another file, so IHO > fine to bug at least once with a warning. > > I wanted to disable the warning since from I remember in the past there was no > real easy way to get rid of it other than a #pragma directive. The only place this > file is included is in zend_execute.c, but I guess it could be re-enabled after, at > the end of zend_vm_execute.h instead if its not per file based (the #pragma > directive). > I don't understand, why do you need to disable the warnings in first place. It's bad to completely turn off warnings, instead of fixing the actual code. Particularly with "once" - it causes just one line, so the info is not completely off the table. That's the actual reason it's done with "once". In some case, it is not critical, but it's still way better to have a warning than to be happy in ignorance. > As for the whitespace changes, that I am not sure of, maybe my editor or check > out caused some non sense on that part, which I apologies > There's a git option to control that. Checkout as-is, but commit in UNIX style. Regards Anatol

« previous php.cvs (#96286) next »