Skip to content

Content Tagged "warning"

Page 1 of 1

Content Tagged "warning"

Trick C++ on Unused Variables

December 24, 2015Category: Software
If you enable warning on unused method parameters ( -Wextra or -Wunused) and you get warnings in method parameters, you're supposed to change the signature. Sometimes this is not OK and you still need the build to pass cleanly. Java has the glorious @SuppressWarnings, so my best and most portable…

Make pyflakes/pylint ignore unused imports

February 12, 2014Category: Software
Sometimes, you need to add an import without explicitly using it, just to have stuff defined. In such cases, both pyflakes and pylint generate messages, which can be annoying. For example django-appconf has a class-based configuration like so: If I'm using the file like this, then I'll end up…

All tags