diff -Nur a/trunk/build/premake/premake4.lua b/trunk/build/premake/premake4.lua
a
|
b
|
|
218 | 218 | -- enable security features (stack checking etc) that shouldn't have |
219 | 219 | -- a significant effect on performance and can catch bugs |
220 | 220 | "-fstack-protector-all", |
| 221 | "-U_FORTIFY_SOURCE", -- (prevent redefinition if it is already set) |
221 | 222 | "-D_FORTIFY_SOURCE=2", |
222 | 223 | |
223 | 224 | -- always enable strict aliasing (useful in debug builds because of the warnings) |
diff -Nur a/trunk/libraries/source/fcollada/include/FCDocument/FCDAnimated.h b/trunk/libraries/source/fcollada/include/FCDocument/FCDAnimated.h
a
|
b
|
|
306 | 306 | /** Resizes the wanted qualifiers. |
307 | 307 | @param qualifiers The new qualifiers for the animated element. |
308 | 308 | @param prependDot Whether to prepend the '.' character for all the qualifiers of the animated element. */ |
309 | | void Resize(const StringList& qualifiers = NULL, bool prependDot = true); |
| 309 | void Resize(const StringList& qualifiers = StringList(), bool prependDot = true); |
310 | 310 | }; |
311 | 311 | |
312 | 312 | /** The common qualifier lists. */ |
Binärdateien a/trunk/libraries/source/fcollada/lib/libFColladaSD.a and b/trunk/libraries/source/fcollada/lib/libFColladaSD.a sind verschieden.
Binärdateien a/trunk/libraries/source/fcollada/lib/libFColladaSR.a and b/trunk/libraries/source/fcollada/lib/libFColladaSR.a sind verschieden.
diff -Nur a/trunk/libraries/source/fcollada/src/FCollada/FCDocument/FCDAnimated.h b/trunk/libraries/source/fcollada/src/FCollada/FCDocument/FCDAnimated.h
a
|
b
|
|
306 | 306 | /** Resizes the wanted qualifiers. |
307 | 307 | @param qualifiers The new qualifiers for the animated element. |
308 | 308 | @param prependDot Whether to prepend the '.' character for all the qualifiers of the animated element. */ |
309 | | void Resize(const StringList& qualifiers = NULL, bool prependDot = true); |
| 309 | void Resize(const StringList& qualifiers = StringList(), bool prependDot = true); |
310 | 310 | }; |
311 | 311 | |
312 | 312 | /** The common qualifier lists. */ |
diff -Nur a/trunk/libraries/source/fcollada/src/Makefile b/trunk/libraries/source/fcollada/src/Makefile
a
|
b
|
|
273 | 273 | rm -rf output |
274 | 274 | |
275 | 275 | -include $(OBJECTS_ALL:.o=.P) |
| 276 | |
| 277 | .SILENT: |
diff -Nur a/trunk/source/graphics/Camera.h b/trunk/source/graphics/Camera.h
a
|
b
|
|
30 | 30 | // view port |
31 | 31 | struct SViewPort |
32 | 32 | { |
33 | | size_t m_X; |
34 | | size_t m_Y; |
35 | | size_t m_Width; |
36 | | size_t m_Height; |
| 33 | int m_X; |
| 34 | int m_Y; |
| 35 | int m_Width; |
| 36 | int m_Height; |
37 | 37 | }; |
38 | 38 | |
39 | 39 | class CCamera |
diff -Nur a/trunk/source/lib/code_annotation.h b/trunk/source/lib/code_annotation.h
a
|
b
|
|
174 | 174 | //----------------------------------------------------------------------------- |
175 | 175 | // cassert |
176 | 176 | |
| 177 | #if defined(__GNUC__) && ((__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ >= 7))) |
| 178 | #define GNU_UNUSED_ATTRIBUTE __attribute__((unused)) |
| 179 | #else |
| 180 | #define GNU_UNUSED_ATTRIBUTE |
| 181 | #endif |
| 182 | |
177 | 183 | /** |
178 | 184 | * Compile-time assertion. Causes a compile error if the expression |
179 | 185 | * evaluates to zero/false. |
… |
… |
|
183 | 189 | * |
184 | 190 | * @param expr Expression that is expected to evaluate to non-zero at compile-time. |
185 | 191 | **/ |
186 | | #define cassert(expr) typedef static_assert_<(expr)>::type UID__ |
| 192 | #define cassert(expr) typedef static_assert_<(expr)>::type UID__ GNU_UNUSED_ATTRIBUTE |
187 | 193 | template<bool> struct static_assert_; |
188 | 194 | template<> struct static_assert_<true> |
189 | 195 | { |
… |
… |
|
196 | 202 | * This version must be used if expr uses a dependent type (e.g. depends on |
197 | 203 | * a template parameter). |
198 | 204 | **/ |
199 | | #define cassert_dependent(expr) typedef typename static_assert_<(expr)>::type UID__ |
| 205 | #define cassert_dependent(expr) typedef typename static_assert_<(expr)>::type UID__ GNU_UNUSED_ATTRIBUTE |
200 | 206 | |
201 | 207 | /** |
202 | 208 | * @copydoc cassert(expr) |
diff -Nur a/trunk/source/ps/Replay.cpp b/trunk/source/ps/Replay.cpp
a
|
b
|
|
170 | 170 | } |
171 | 171 | else if (type == "cmd") |
172 | 172 | { |
173 | | u32 player; |
| 173 | player_id_t player; |
174 | 174 | *m_Stream >> player; |
175 | 175 | |
176 | 176 | std::string line; |
diff -Nur a/trunk/source/simulation2/components/CCmpAIManager.cpp b/trunk/source/simulation2/components/CCmpAIManager.cpp
a
|
b
|
|
963 | 963 | |
964 | 964 | // Get the territory data |
965 | 965 | // Since getting the territory grid can trigger a recalculation, we check NeedUpdate first |
966 | | bool territoryMapDirty = false; |
967 | 966 | Grid<u8> dummyGrid2; |
968 | 967 | const Grid<u8>* territoryMap = &dummyGrid2; |
969 | 968 | CmpPtr<ICmpTerritoryManager> cmpTerritoryManager(GetSimContext(), SYSTEM_ENTITY); |
970 | 969 | if (cmpTerritoryManager && cmpTerritoryManager->NeedUpdate(&m_TerritoriesDirtyID)) |
971 | 970 | { |
972 | 971 | territoryMap = &cmpTerritoryManager->GetTerritoryGrid(); |
973 | | territoryMapDirty = true; |
974 | 972 | } |
975 | 973 | |
976 | 974 | LoadPathfinderClasses(state); |
diff -Nur a/trunk/source/soundmanager/items/CBufferItem.cpp b/trunk/source/soundmanager/items/CBufferItem.cpp
a
|
b
|
|
59 | 59 | AL_CHECK |
60 | 60 | delete[] al_buf; |
61 | 61 | } |
62 | | alSourcei(m_ALSource, AL_BUFFER, NULL); |
| 62 | alSourcei(m_ALSource, AL_BUFFER, 0); |
63 | 63 | ((CSoundManager*)g_SoundManager)->ReleaseALSource(m_ALSource); |
64 | 64 | AL_CHECK |
65 | 65 | |
diff -Nur a/trunk/source/soundmanager/items/CSoundBase.cpp b/trunk/source/soundmanager/items/CSoundBase.cpp
a
|
b
|
|
44 | 44 | if (m_ALSource != 0) |
45 | 45 | { |
46 | 46 | AL_CHECK |
47 | | alSourcei(m_ALSource, AL_BUFFER, NULL); |
| 47 | alSourcei(m_ALSource, AL_BUFFER, 0); |
48 | 48 | AL_CHECK |
49 | 49 | ((CSoundManager*)g_SoundManager)->ReleaseALSource(m_ALSource); |
50 | 50 | AL_CHECK |
diff -Nur a/trunk/source/soundmanager/items/CStreamItem.cpp b/trunk/source/soundmanager/items/CStreamItem.cpp
a
|
b
|
|
55 | 55 | AL_CHECK |
56 | 56 | delete[] al_buf; |
57 | 57 | } |
58 | | alSourcei(m_ALSource, AL_BUFFER, NULL); |
| 58 | alSourcei(m_ALSource, AL_BUFFER, 0); |
59 | 59 | AL_CHECK |
60 | 60 | ((CSoundManager*)g_SoundManager)->ReleaseALSource(m_ALSource); |
61 | 61 | AL_CHECK |
diff -Nur a/trunk/source/third_party/mongoose/mongoose.cpp b/trunk/source/third_party/mongoose/mongoose.cpp
a
|
b
|
|
1996 | 1996 | } |
1997 | 1997 | byteReverse(ctx->in, 14); |
1998 | 1998 | |
1999 | | ((uint32_t *) ctx->in)[14] = ctx->bits[0]; |
2000 | | ((uint32_t *) ctx->in)[15] = ctx->bits[1]; |
| 1999 | memcpy(ctx->in + 14 * sizeof(uint32_t), ctx->bits, sizeof(ctx->bits)); |
2001 | 2000 | |
2002 | 2001 | MD5Transform(ctx->buf, (uint32_t *) ctx->in); |
2003 | 2002 | byteReverse((unsigned char *) ctx->buf, 4); |