Fix some compiler warnings
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2be50e2..58f0cd2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@
### Changed
- Reorganized internal struct avifCodec to accomodate multiple codecs simultaneously (compile time; not exposed to API)
+- Fix some compiler warnings
## [0.2.0] - 2019-06-12
### Added
diff --git a/src/colr.c b/src/colr.c
index 225a30d..8a9c941 100644
--- a/src/colr.c
+++ b/src/colr.c
@@ -9,7 +9,7 @@
struct avifColourPrimariesTable
{
- int colourPrimariesEnum;
+ avifNclxColourPrimaries colourPrimariesEnum;
const char * name;
float primaries[8]; // rX, rY, gX, gY, bX, bY, wX, wY
};
diff --git a/src/read.c b/src/read.c
index 73b97a5..9fb2099 100644
--- a/src/read.c
+++ b/src/read.c
@@ -280,16 +280,16 @@
uint8_t associationCount;
CHECK(avifStreamRead(&s, &associationCount, 1));
for (uint8_t associationIndex = 0; associationIndex < associationCount; ++associationIndex) {
- avifBool essential = AVIF_FALSE;
+ // avifBool essential = AVIF_FALSE; // currently unused
uint16_t propertyIndex = 0;
if (propertyIndexIsU16) {
CHECK(avifStreamReadU16(&s, &propertyIndex));
- essential = (propertyIndex & 0x8000) ? AVIF_TRUE : AVIF_FALSE;
+ // essential = (propertyIndex & 0x8000) ? AVIF_TRUE : AVIF_FALSE;
propertyIndex &= 0x7fff;
} else {
uint8_t tmp;
CHECK(avifStreamRead(&s, &tmp, 1));
- essential = (tmp & 0x80) ? AVIF_TRUE : AVIF_FALSE;
+ // essential = (tmp & 0x80) ? AVIF_TRUE : AVIF_FALSE;
propertyIndex = tmp & 0x7f;
}