summaryrefslogtreecommitdiff
path: root/gtk/Makefile.target
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-05-20 16:43:48 +0100
committerVincent Sanders <vince@kyllikki.org>2015-05-20 16:43:48 +0100
commita29e9589f6bd54e258805bef367528a18d7b0c2b (patch)
treed7af8f394c491bcd4c888af2ddc854fc41ba6589 /gtk/Makefile.target
parent8f1c9673d72faf3c09de1adee509d52b80f43d22 (diff)
downloadnetsurf-a29e9589f6bd54e258805bef367528a18d7b0c2b.tar.gz
netsurf-a29e9589f6bd54e258805bef367528a18d7b0c2b.tar.bz2
Change how GDK image resources are compiled in.
The compiled in image resources were being created as a structure in a generated c source file. The generation of this file caused constness warning as a guint8 * was initialised from a const char array. This changes the generation and use of these compiled in resources to use the raw inline form as suggested by the documentation removing the const warning.
Diffstat (limited to 'gtk/Makefile.target')
-rw-r--r--gtk/Makefile.target2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/Makefile.target b/gtk/Makefile.target
index ee757f5f0..0b2eaab9a 100644
--- a/gtk/Makefile.target
+++ b/gtk/Makefile.target
@@ -92,7 +92,7 @@ S_PIXBUF += $(2)
$(2): $(1)
$(Q)echo "#include <gdk-pixbuf/gdk-pixdata.h>" > $(2)
- $(Q)gdk-pixbuf-csource --extern --struct --name=$(3) $(1) >> $(2) || \
+ $(Q)gdk-pixbuf-csource --extern --raw --name=$(3) $(1) >> $(2) || \
( rm -f $(2) && false )
endef