- removed some GCC warnings
@@ -908,8 +908,10 @@ | ||
908 | 908 | |
909 | 909 | // DebugHeap memory checkup routine. |
910 | 910 | // Loops through all memory blocks and tells you about their callstacks. |
911 | -// Use this in combination with breakpoints. | |
912 | -#pragma optimize("", off) | |
911 | +// Use this in combination with breakpoints. | |
912 | +#ifdef _MSC_VER | |
913 | +#pragma optimize("", off) | |
914 | +#endif //_MSC_VER | |
913 | 915 | |
914 | 916 | void DbgHeap_CheckActiveBlocks( void ) |
915 | 917 | { |
@@ -930,9 +932,11 @@ | ||
930 | 932 | |
931 | 933 | #endif //USE_HEAP_DEBUGGING |
932 | 934 | } |
935 | + | |
936 | +#ifdef _MSC_VER | |
937 | +#pragma optimize("", on) | |
938 | +#endif //_MSC_VER | |
933 | 939 | |
934 | -#pragma optimize("", on) | |
935 | - | |
936 | 940 | // DebugHeap memory callback routines. |
937 | 941 | // Call these to set specific callbacks for memory watching. |
938 | 942 | void DbgHeap_SetMemoryAllocationWatch( pfnMemoryAllocWatch allocWatchCallback ) |