[issue24655] _ssl.c: Missing "do" for do {} while(0) idiom

Martin Panter report at bugs.python.org
Sat Jul 18 02:06:47 CEST 2015


Martin Panter added the comment:

The patch is certainly an improvement and could be committed. It looks like the same fault is in the 3.4 and 2.7 code.

However, since the usage of this macro is limited to the four lines immediately following its definition, it might be clearer to just drop the do-while hackery in this case. (And make it CONVERT uppercase to signify that it is a macro.)

----------
nosy: +vadmium
stage:  -> commit review
type:  -> compile error
versions: +Python 2.7, Python 3.4, Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue24655>
_______________________________________


More information about the Python-bugs-list mailing list