Disallow deprecated-declarations in non-test

Some deprecated functions have tests, so they must be exempted.
diff --git a/BUILD b/BUILD
index 9265841..f9261ab 100644
--- a/BUILD
+++ b/BUILD
@@ -50,7 +50,6 @@
         "-DHAVE_ZLIB",
         "-Woverloaded-virtual",
         "-Wno-sign-compare",
-        "-Wno-deprecated-declarations",
     ],
 })
 
@@ -740,7 +739,12 @@
         ],
         ":msvc": [],
     }),
-    copts = COPTS,
+    copts = COPTS + select({
+        ":msvc": [],
+        "//conditions:default": [
+            "-Wno-deprecated-declarations",
+        ],
+    }),
     data = [
         ":test_plugin",
     ] + glob([