diff --git a/dlls/regex/CRegEx.cpp b/dlls/regex/CRegEx.cpp
index a26ba77b..6874d763 100755
--- a/dlls/regex/CRegEx.cpp
+++ b/dlls/regex/CRegEx.cpp
@@ -45,8 +45,6 @@ bool RegEx::isFree(bool set, bool val)
int RegEx::Compile(const char *pattern)
{
- int errno;
-
if (!mFree)
Clear();
diff --git a/dlls/regex/regex.vcproj b/dlls/regex/regex.vcproj
index 769c2c0b..d9173ab7 100755
--- a/dlls/regex/regex.vcproj
+++ b/dlls/regex/regex.vcproj
@@ -31,7 +31,7 @@
Name="VCCustomBuildTool"/>