Fix compiler warning in bitstream.c
The write_motion_mode function only uses its "cm" parameter if it
needs to write out global motion information or distinguish between
motion_var and warped_motion. When these are disabled, you get a
compiler warning which this patch silences.
Change-Id: I64d06a150751cd72cf4b50799432f3161ee87938
diff --git a/av1/encoder/bitstream.c b/av1/encoder/bitstream.c
index bd3591c..11acede 100644
--- a/av1/encoder/bitstream.c
+++ b/av1/encoder/bitstream.c
@@ -496,6 +496,13 @@
const MODE_INFO *mi, aom_writer *w) {
const MB_MODE_INFO *mbmi = &mi->mbmi;
+#if !CONFIG_GLOBAL_MOTION
+ // The cm parameter is only used with global_motion or with
+ // motion_var and warped_motion. In other cases, explicitly ignore
+ // it to avoid a compiler warning.
+ (void)cm;
+#endif
+
#if CONFIG_NCOBMC_ADAPT_WEIGHT
MOTION_MODE last_motion_mode_allowed =
motion_mode_allowed_wrapper(0,