From 1c9ccb6b6115d0a90fe4346265217a3859a0df7c Mon Sep 17 00:00:00 2001 From: Hugues Delorme Date: Fri, 20 Mar 2015 10:08:35 +0100 Subject: [PATCH] gmio_stl: fix GCC -Wenum-compare warnings --- src/gmio_stl/stlb_read.c | 2 +- src/gmio_stl/stlb_write.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gmio_stl/stlb_read.c b/src/gmio_stl/stlb_read.c index 6d43366..17e0069 100644 --- a/src/gmio_stl/stlb_read.c +++ b/src/gmio_stl/stlb_read.c @@ -72,7 +72,7 @@ int gmio_stlb_read( const gmio_stlb_read_options_t* options) { /* Constants */ - const gmio_endianness_t byte_order = + const int byte_order = options != NULL ? options->byte_order : GMIO_HOST_ENDIANNESS; const uint32_t max_facet_count_per_read = trsf != NULL ? diff --git a/src/gmio_stl/stlb_write.c b/src/gmio_stl/stlb_write.c index 5ffbb68..02af36c 100644 --- a/src/gmio_stl/stlb_write.c +++ b/src/gmio_stl/stlb_write.c @@ -73,7 +73,7 @@ int gmio_stlb_write( const gmio_stlb_write_options_t* options) { /* Constants */ - const gmio_endianness_t byte_order = + const int byte_order = options != NULL ? options->byte_order : GMIO_HOST_ENDIANNESS; const uint8_t* header_data = options != NULL ? options->header_data : NULL;