summaryrefslogtreecommitdiffstats
path: root/dtbhtool
diff options
context:
space:
mode:
authorStricted <info@stricted.net>2018-09-24 20:50:26 +0200
committerStricted <info@stricted.net>2018-10-04 11:03:35 +0200
commit3336e04a633a5aa9529421e874ff8b9bc9de73a2 (patch)
tree85e9ff8bf4b92e62cb17cc80436dba0313fbf171 /dtbhtool
parent1ecbe8674bfc504415ae54dfd51e8a43723aba7b (diff)
downloadhardware_samsung-3336e04a633a5aa9529421e874ff8b9bc9de73a2.tar.gz
hardware_samsung-3336e04a633a5aa9529421e874ff8b9bc9de73a2.tar.bz2
hardware_samsung-3336e04a633a5aa9529421e874ff8b9bc9de73a2.zip
dtbhtool: fix unused variable 'model' warning
Change-Id: I0ac347428d01789622487d803ae13d433240063c
Diffstat (limited to 'dtbhtool')
-rw-r--r--dtbhtool/dtbimg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dtbhtool/dtbimg.c b/dtbhtool/dtbimg.c
index cddcd29..f751e88 100644
--- a/dtbhtool/dtbimg.c
+++ b/dtbhtool/dtbimg.c
@@ -126,7 +126,9 @@ void *load_dtbh_block(const char *dtb_path, unsigned pagesize, unsigned *_sz)
uint32_t version = DTBH_VERSION;
unsigned blob_sz = 0;
char fname[PATH_MAX];
+#ifdef DTBH_MODEL
const unsigned *model;
+#endif
const unsigned *prop_chip;
const unsigned *prop_platform;
const unsigned *prop_subtype;