summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorErik de Castro Lopo <erikd@mega-nerd.com>2014-04-09 17:56:13 +1000
committerErik de Castro Lopo <erikd@mega-nerd.com>2014-04-09 18:09:03 +1000
commit3f5208c30022b7cbd0b9095ad3550c4f6cb348c9 (patch)
treeabe7b3f5aac61ae00c25aeb0dee69df9ea880651 /include
parent2c45537721ff383176534ec1a22b99381330db73 (diff)
downloadflac-3f5208c30022b7cbd0b9095ad3550c4f6cb348c9.tar.gz
Fix clang compiler warnings.
These were most arising from -Wenum-conversion where an enum of one type was being assigned to a variable on another. Originally reported by Lenny Maiorani <lenny@colorado.edu> on the flac-dev mailing list.
Diffstat (limited to 'include')
-rw-r--r--include/FLAC/format.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/FLAC/format.h b/include/FLAC/format.h
index e4c1c1a6..e02388c5 100644
--- a/include/FLAC/format.h
+++ b/include/FLAC/format.h
@@ -509,9 +509,11 @@ typedef enum {
FLAC__METADATA_TYPE_PICTURE = 6,
/**< <A HREF="../format.html#metadata_block_picture">PICTURE</A> block */
- FLAC__METADATA_TYPE_UNDEFINED = 7
+ FLAC__METADATA_TYPE_UNDEFINED = 7,
/**< marker to denote beginning of undefined type range; this number will increase as new metadata types are added */
+ FLAC__MAX_METADATA_TYPE = FLAC__MAX_METADATA_TYPE_CODE,
+ /**< No type will ever be greater than this. There is not enough room in the protocol block. */
} FLAC__MetadataType;
/** Maps a FLAC__MetadataType to a C string.