From 9f548012815fcf17f6bae88e71e4fbd431516c31 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Fri, 23 Nov 2012 23:40:50 +0200 Subject: [PATCH] Enable compiler optimizations and fix some warnings --- Makefile | 2 +- ttf2png.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 0bc7aad..cfe0ee0 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ ttf2png: ttf2png.c - gcc -Wall -Wextra -Werror -std=c89 -pedantic $^ -o $@ $(shell freetype-config --cflags --libs) $(shell pkg-config --cflags --libs libpng12) + gcc -Wall -Wextra -Werror -std=c89 -pedantic -O2 $^ -o $@ $(shell freetype-config --cflags --libs) $(shell pkg-config --cflags --libs libpng12) VER=0.3 diff --git a/ttf2png.c b/ttf2png.c index e254349..9714ecd 100644 --- a/ttf2png.c +++ b/ttf2png.c @@ -320,14 +320,14 @@ void *alloc_image_data(size_t a, size_t b) a += c; if(a