adafruit/Adafruit-GFX-Library — pull request #5 by mokipcs (2012-12-01 13:29:57+00:00)
Title: Changed font to be const, so it can be in PROGMEM

I was unable to compile the project using GCC 4.7.0, beacuse the font variable was not declared const. This patch fixes that issue.

$ avr-gcc -Os -mmcu=atmega32u2 -Wall -c glcdfont.c
glcdfont.c:9:22: error: variable ‘font’ must be const in order to be put into read-only section by means of ‘__attribute__((progmem))’

$ avr-gcc --version
avr-gcc (GCC) 4.7.0
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.