Changeset 66729 in webkit
- Timestamp:
- Sep 3, 2010 6:57:09 AM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r66706 r66729 1 2010-09-03 Csaba Osztrogonác <ossy@webkit.org> 2 3 Reviewed by Simon Hausmann. 4 5 Fix warning in wtf/ByteArray.h 6 https://bugs.webkit.org/show_bug.cgi?id=44672 7 8 * wtf/ByteArray.h: Use maximal sized array for MSVC and unsized array for other compilers. 9 1 10 2010-09-02 Adam Barth <abarth@webkit.org> 2 11 -
trunk/JavaScriptCore/wtf/ByteArray.h
r47456 r66729 27 27 #define ByteArray_h 28 28 29 #include <limits.h> 29 30 #include <wtf/PassRefPtr.h> 31 #include <wtf/Platform.h> 30 32 #include <wtf/RefCounted.h> 31 33 … … 87 89 } 88 90 size_t m_size; 89 unsigned char m_data[sizeof(size_t)]; 91 // MSVC can't handle correctly unsized array. 92 // warning C4200: nonstandard extension used : zero-sized array in struct/union 93 // Cannot generate copy-ctor or copy-assignment operator when UDT contains a zero-sized array 94 #if COMPILER(MSVC) 95 unsigned char m_data[INT_MAX]; 96 #else 97 unsigned char m_data[]; 98 #endif 90 99 }; 91 100 }
Note: See TracChangeset
for help on using the changeset viewer.