Browse Source

Fix small things from stricter build flags

precompiled-headers
Macoy Madson 2 months ago
parent
commit
5856e3197e
4 changed files with 4 additions and 3 deletions
  1. +1
    -1
      Bootstrap.cake
  2. +0
    -1
      src/Build.cpp
  3. +2
    -0
      src/GeneratorHelpers.cpp
  4. +1
    -1
      src/ModuleManager.cpp

+ 1
- 1
Bootstrap.cake View File

@ -20,7 +20,7 @@
"Build.cpp"
"Main.cpp")
(add-build-options "-DUNIX")
(add-build-options "-DUNIX" "-Wall" "-Werror" "-std=c++11")
;; Cakelisp dynamically loads compile-time code
(add-library-dependency "dl")


+ 0
- 1
src/Build.cpp View File

@ -396,7 +396,6 @@ bool buildReadCacheFile(const char* buildOutputDir, ArtifactCrcTable& cachedComm
return false;
}
char* endPtr;
cachedCommandCrcs[(*tokens)[artifactIndex].contents] =
static_cast<uint32_t>(std::stoul((*tokens)[crcIndex].contents));
}


+ 2
- 0
src/GeneratorHelpers.cpp View File

@ -190,6 +190,8 @@ int getNextArgument(const std::vector<Token>& tokens, int currentTokenIndex, int
nextArgStart = FindCloseParenTokenIndex(tokens, currentTokenIndex);
++nextArgStart;
if (nextArgStart > endArrayTokenIndex)
nextArgStart = endArrayTokenIndex;
return nextArgStart;
}


+ 1
- 1
src/ModuleManager.cpp View File

@ -782,7 +782,7 @@ static bool moduleManagerGetObjectsToBuild(ModuleManager& manager,
{&module->librarySearchDirectories, &sharedBuildOptions.librarySearchDirs},
{&module->libraryRuntimeSearchDirectories,
&sharedBuildOptions.libraryRuntimeSearchDirs}};
for (int linkArgumentSet = 0; linkArgumentSet < ArraySize(linkArgumentsToAdd);
for (size_t linkArgumentSet = 0; linkArgumentSet < ArraySize(linkArgumentsToAdd);
++linkArgumentSet)
{
for (const std::string& str : *(linkArgumentsToAdd[linkArgumentSet].inputs))


Loading…
Cancel
Save