Fixed build files for Windows clang

Made Windows files work for Windows clang.
Verified on Linux and Windows Visual Studio
compiler to make sure nothing was broken.

Change-Id: I82815491579cdfca602660279f6831c8820249f6
Reviewed-on: https://swiftshader-review.googlesource.com/7052
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Corentin Wallez <cwallez@google.com>
Reviewed-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/OpenGL/libEGL/BUILD.gn b/src/OpenGL/libEGL/BUILD.gn
index 485cda9..35692bb 100644
--- a/src/OpenGL/libEGL/BUILD.gn
+++ b/src/OpenGL/libEGL/BUILD.gn
@@ -14,23 +14,27 @@
 
 # Need a separate config to ensure the warnings are added to the end.
 config("swiftshader_libEGL_private_config") {
-  if (is_clang) {
+  if (is_win) {
+    cflags = [
+      "/DEGLAPI=",
+      "/DEGL_EGLEXT_PROTOTYPES",
+      "/DLIBEGL_EXPORTS",
+      "/wd4201", # nameless struct/union
+      "/wd4065", # switch statement contains 'default' but no 'case' labels
+    ]
+
+    if (is_clang) {
+      cflags += [
+        "-Wno-unused-function",
+      ]
+    }
+  } else {
     cflags = [
       "-DLOG_TAG=\"swiftshader_libEGL\"",
       "-DEGLAPI=",
       "-DEGL_EGLEXT_PROTOTYPES",
       "-Wno-sign-compare",
     ]
-  } else {
-    if (host_os == "win") {
-      cflags = [
-        "/DEGLAPI=",
-        "/DEGL_EGLEXT_PROTOTYPES",
-        "/DLIBEGL_EXPORTS",
-        "/wd4201", # nameless struct/union
-        "/wd4065", # switch statement contains 'default' but no 'case' labels
-      ]
-    }
   }
 }