[cpp] Fix -Wextra-semi suppression

-Wno-* must appear after -W* to take effect.
In order to do that, The -Wno-* flags must be added
via a config rather than as cflags on the target.

Change-Id: I38f45e7e400936cdc9c7bf041713df4d381f6c3a
Reviewed-on: https://fuchsia-review.googlesource.com/c/third_party/glog/+/602225
Reviewed-by: Tamir Duberstein <tamird@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 34eebe6..6ed27a6 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -43,7 +43,7 @@
     "src/utilities.cc",
     "src/vlog_is_on.cc",
   ]
-  cflags = [ "-Wno-extra-semi" ]
+  configs += [ "//build/config:Wno-extra-semi" ]
   public_configs = [ ":glog_config" ]
   deps = [ "//third_party/gflags" ]