Browse Source

MSVS build: Fixed debug build. MSVS doesn't like uninitialized variables.

build-mingw
unknown 11 years ago
parent
commit
958764fecc
  1. 2
      sgminer.c
  2. 4
      winbuild/sgminer.vcxproj

2
sgminer.c

@ -5588,7 +5588,7 @@ static bool pool_active(struct pool *pool, bool pinging) @@ -5588,7 +5588,7 @@ static bool pool_active(struct pool *pool, bool pinging)
bool ret = false;
json_t *val;
CURL *curl;
int uninitialised_var(rolltime);
int rolltime = 0;
if (pool->has_gbt)
applog(LOG_DEBUG, "Retrieving block template from %s", pool->poolname);

4
winbuild/sgminer.vcxproj

@ -99,7 +99,7 @@ @@ -99,7 +99,7 @@
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(ProjectDir)dist\lib\x86</AdditionalLibraryDirectories>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
<OptimizeReferences>false</OptimizeReferences>
@ -136,7 +136,7 @@ exit 0</Command> @@ -136,7 +136,7 @@ exit 0</Command>
</ClCompile>
<Link>
<SubSystem>Console</SubSystem>
<GenerateDebugInformation>false</GenerateDebugInformation>
<GenerateDebugInformation>true</GenerateDebugInformation>
<AdditionalLibraryDirectories>$(ProjectDir)dist\lib\x64</AdditionalLibraryDirectories>
<AdditionalDependencies>%(AdditionalDependencies)</AdditionalDependencies>
<OptimizeReferences>false</OptimizeReferences>

Loading…
Cancel
Save