Larry Hastings added the comment: Here's a first attempt at a patch.
The Visual Studio pragma disables for the rest of the file, which is undesirable. Maybe we could turn it on and off inline, but it's not clear to me that that would have the desired effect of turning off the warning for explicitly that parameter declaration. Also, a little googling confirms that clang supports the GCC __attribute((unused)) extension, so I just went with that. ---------- Added file: http://bugs.python.org/file33150/larry.clinic.fix.meth_noargs.1.diff.txt _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19976> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com