diff --git a/chsrc.c b/chsrc.c index c16ea16..204b018 100644 --- a/chsrc.c +++ b/chsrc.c @@ -584,8 +584,6 @@ pl_dotnet_getsrc (char* option) void pl_dotnet_setsrc (char* option) { - int index = 0; char* check_cmd = NULL; - xy_error ("chsrc: 暂时无法为NuGet换源,若有需求,请您提交issue"); } @@ -1656,7 +1654,6 @@ main (int argc, char const *argv[]) } const char* command = argv[1]; - const char* target = NULL; bool matched = false; diff --git a/chsrc.h b/chsrc.h index 1407fa1..bd4df1a 100644 --- a/chsrc.h +++ b/chsrc.h @@ -475,7 +475,7 @@ int dblary_maxidx(double* array, int size) { double maxval = array[0]; - double maxidx = 0; + int maxidx = 0; for (int i=1; imaxval) { diff --git a/xy.h b/xy.h index ecde44f..2392f67 100644 --- a/xy.h +++ b/xy.h @@ -33,7 +33,7 @@ static bool xy_on_windows = true; static bool xy_on_linux = false; static bool xy_on_macos = false; - static bool xy_on_bsds = false; + static bool xy_on_bsd = false; static char* xy_os_devnull = "nul"; @@ -45,7 +45,7 @@ static bool xy_on_windows = false; static bool xy_on_linux = true; static bool xy_on_macos = false; - static bool xy_on_bsds = false; + static bool xy_on_bsd = false; static char* xy_os_devnull = "/dev/null"; @@ -56,7 +56,7 @@ static bool xy_on_windows = false; static bool xy_on_linux = false; static bool xy_on_macos = true; - static bool xy_on_bsds = false; + static bool xy_on_bsd = false; // set xy_os_devnull @@ -67,7 +67,7 @@ static bool xy_on_windows = false; static bool xy_on_linux = false; static bool xy_on_macos = false; - static bool xy_on_bsds = true; + static bool xy_on_bsd = true; // set xy_os_devnull