summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorbrad kittenbrink <brad@lindenlab.com>2011-04-27 19:20:55 -0700
committerbrad kittenbrink <brad@lindenlab.com>2011-04-27 19:20:55 -0700
commit0d5a0cefd4d5b34d3c8e9d06621ec3e1f4e5d46b (patch)
tree5dd4cd54aa25d5f44421098084e66f9185c9f27e /indra
parent42fe138cbb1af4acbb6851711f8c7f86c65795c0 (diff)
parent8a265498d02ee9322b5ed6dbd1fae6b60dbe843d (diff)
Merge
Diffstat (limited to 'indra')
-rw-r--r--indra/llcommon/CMakeLists.txt4
-rw-r--r--indra/llvfs/llvfs.cpp2
2 files changed, 5 insertions, 1 deletions
diff --git a/indra/llcommon/CMakeLists.txt b/indra/llcommon/CMakeLists.txt
index 22e0705036..800bf8eba9 100644
--- a/indra/llcommon/CMakeLists.txt
+++ b/indra/llcommon/CMakeLists.txt
@@ -268,6 +268,10 @@ if(LLCOMMON_LINK_SHARED)
add_definitions(-fPIC)
endif(WINDOWS)
endif(NOT WORD_SIZE EQUAL 32)
+ if(WINDOWS)
+ # always generate llcommon.pdb, even for "Release" builds
+ set_target_properties(llcommon PROPERTIES LINK_FLAGS "/DEBUG")
+ endif(WINDOWS)
ll_stage_sharedlib(llcommon)
else(LLCOMMON_LINK_SHARED)
add_library (llcommon ${llcommon_SOURCE_FILES})
diff --git a/indra/llvfs/llvfs.cpp b/indra/llvfs/llvfs.cpp
index 82166d3e56..78b67e9b68 100644
--- a/indra/llvfs/llvfs.cpp
+++ b/indra/llvfs/llvfs.cpp
@@ -1712,7 +1712,7 @@ void LLVFS::audit()
BOOL vfs_corrupt = FALSE;
// since we take the address of element 0, we need to have at least one element.
- std::vector<U8> buffer(llmax(index_size,1U));
+ std::vector<U8> buffer(llmax<size_t>(index_size,1U));
if (fread(&buffer[0], 1, index_size, mIndexFP) != index_size)
{