Alexandre Julliard : winebuild: Also optimize out imports that are only used for forwards.

Alexandre Julliard julliard at winehq.org
Fri Dec 7 11:01:48 CST 2007


Module: wine
Branch: master
Commit: 195356c0981709e090201944f35298f48b7a7346
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=195356c0981709e090201944f35298f48b7a7346

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Dec  6 21:44:45 2007 +0100

winebuild: Also optimize out imports that are only used for forwards.

---

 tools/winebuild/import.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/tools/winebuild/import.c b/tools/winebuild/import.c
index a1fdbd0..5b62512 100644
--- a/tools/winebuild/import.c
+++ b/tools/winebuild/import.c
@@ -617,10 +617,11 @@ int resolve_imports( DLLSPEC *spec )
                 }
             }
         }
-        if (!removed && check_unused( imp, spec ))
+        if (!removed)
         {
             /* the dll is not used, get rid of it */
-            warning( "winebuild: %s imported but no symbols used\n", imp->spec->file_name );
+            if (check_unused( imp, spec ))
+                warning( "winebuild: %s imported but no symbols used\n", imp->spec->file_name );
             remove_import_dll( i );
             i--;
         }




More information about the wine-cvs mailing list