Fix compile warning with --disable-highbitdepth

Change-Id: Ic31a53a37ff9200fad178e5054cffc4b87c6cc42
diff --git a/av1/common/restoration.c b/av1/common/restoration.c
index 65f7ff7..b898b95 100644
--- a/av1/common/restoration.c
+++ b/av1/common/restoration.c
@@ -1690,9 +1690,13 @@
                          int extend, int use_highbitdepth) {
   for (int i = 0; i < height; ++i) {
     if (use_highbitdepth) {
+#if CONFIG_HIGHBITDEPTH
       uint16_t *buf16 = (uint16_t *)buf;
       aom_memset16(buf16 - extend, buf16[0], extend);
       aom_memset16(buf16 + width, buf16[width - 1], extend);
+#else
+      assert(0 && "use_highbitdepth set but CONFIG_HIGHBITDEPTH not enabled");
+#endif  // CONFIG_HIGHBITDEPTH
     } else {
       memset(buf - extend, buf[0], extend);
       memset(buf + width, buf[width - 1], extend);