OSDN Git Service

Compiler warnings removal Numerous tweaks to remove compiler warnings where solution...
[tortoisegit/TortoiseGitJp.git] / src / Git / GitStatus.cpp
index 0deea23..8e7ae07 100644 (file)
@@ -189,7 +189,7 @@ stdstring GitStatus::GetLastErrorMsg() const
 // static method\r
 git_wc_status_kind GitStatus::GetAllStatus(const CTGitPath& path, git_depth_t depth)\r
 {\r
-       git_wc_status_kind                      statuskind;\r
+       git_wc_status_kind                      statuskind = git_wc_status_none;\r
 #if 0\r
        git_client_ctx_t *                      ctx;\r
        \r
@@ -208,7 +208,6 @@ git_wc_status_kind GitStatus::GetAllStatus(const CTGitPath& path, git_depth_t de
        git_revnum_t youngest = Git_INVALID_REVNUM;\r
        git_opt_revision_t rev;\r
        rev.kind = git_opt_revision_unspecified;\r
-       statuskind = git_wc_status_none;\r
        err = git_client_status4 (&youngest,\r
                                                        path.GetGitApiPath(pool),\r
                                                        &rev,\r