Laur's blog
  • Home
  • About
  • Support my work
Sign in Subscribe

warning

A collection of 3 posts
Trick C++ on Unused Variables
macro

Trick C++ on Unused Variables

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
Dec 24, 2015 1 min read
Get Rid of - iCCP: Not recognizing known sRGB profile that has been edited
aapt

Get Rid of - iCCP: Not recognizing known sRGB profile that has been edited

The past weeks I compiled an android app and I was getting: AAPT: .... iCCP: Not recognizing known sRGB profile that has been edited Not so nice. I found out that it was because AAPT is compiled against a newer libpng. Since the PNGs I had were not stock ones, the
May 4, 2015 1 min read
Make pyflakes/pylint ignore unused imports
django

Make pyflakes/pylint ignore unused imports

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: # -*- coding: utf-8 -*- """ django appconf configuration
Feb 12, 2014 1 min read
Page 1 of 1
Laur's blog © 2025
  • Sign up
Powered by Ghost