blob: b54199b08c1c677a84d1e81670a98c3899f6c5b2 [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001From b2c4fc69868a4831ec798ad98f5e7fce200cf0e3 Mon Sep 17 00:00:00 2001
2From: Andrea Adami <andrea.adami@gmail.com>
3Date: Thu, 24 Sep 2015 00:02:48 +0200
4Subject: [PATCH] rgb.h: fix build with gcc 5 (C99 inline semantic)
5
6Building with gcc 5.2 we trigger the following error:
7
8rgb.h:55:1: warning: inline function 'rgba2comp' declared but never defined
9| rgba2comp(kx_rgba rgba, kx_ccomp *red, kx_ccomp *green,
10| ^
11
12https://gcc.gnu.org/gcc-5/porting_to.html
13
14Signed-off-by: Andrea Adami <andrea.adami@gmail.com>
15---
16 rgb.h | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/rgb.h b/rgb.h
20index 0ba987a..4f64622 100644
21--- a/rgb.h
22+++ b/rgb.h
23@@ -51,8 +51,7 @@ typedef struct {
24 } kx_named_color;
25
26 /* Convert RGBA uint32 to red/green/blue/alpha components */
27-inline void
28-rgba2comp(kx_rgba rgba, kx_ccomp *red, kx_ccomp *green,
29+void rgba2comp(kx_rgba rgba, kx_ccomp *red, kx_ccomp *green,
30 kx_ccomp *blue, kx_ccomp *alpha);
31
32 /* Convert hex rgb color to rgba color */
33--
341.9.1
35