From cd6b53fd837f16b181370512eebac9a8856f08d5 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 21 Oct 2015 18:52:17 -0700 Subject: [PATCH] Fix some compiler warnings in libpixelflinger. class/struct mismatch and use of 'register'. Change-Id: I6cfe0f7fdc214c3a009eb01251f5ea9a8fdb895d --- .../include/private/pixelflinger/ggl_context.h | 2 +- libpixelflinger/trap.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/libpixelflinger/include/private/pixelflinger/ggl_context.h b/libpixelflinger/include/private/pixelflinger/ggl_context.h index d43655cbb..a18b2f769 100644 --- a/libpixelflinger/include/private/pixelflinger/ggl_context.h +++ b/libpixelflinger/include/private/pixelflinger/ggl_context.h @@ -234,7 +234,7 @@ enum { // ---------------------------------------------------------------------------- -class needs_filter_t; +struct needs_filter_t; struct needs_t { inline int match(const needs_filter_t& filter); inline bool operator == (const needs_t& rhs) const { diff --git a/libpixelflinger/trap.cpp b/libpixelflinger/trap.cpp index 80efeff71..ea5362553 100644 --- a/libpixelflinger/trap.cpp +++ b/libpixelflinger/trap.cpp @@ -563,10 +563,10 @@ void trianglex_small(void* con, c->init_y(c, miny); for (int32_t y = miny; y < maxy; y++) { - register int32_t ex0 = ey0; - register int32_t ex1 = ey1; - register int32_t ex2 = ey2; - register int32_t xl, xr; + int32_t ex0 = ey0; + int32_t ex1 = ey1; + int32_t ex2 = ey2; + int32_t xl, xr; for (xl=minx ; xl0 && ex1>0 && ex2>0) break; // all strictly positive