@@ -1507,15 +1507,13 @@ namespace basisu
15071507#if defined(__GNUC__) && !defined(__clang__)
15081508#pragma GCC diagnostic push
15091509#pragma GCC diagnostic ignored "-Wclass-memaccess"
1510- #endif
15111510#endif
15121511 if ((m_p) && (other.m_p ))
15131512 {
15141513 memcpy (m_p, other.m_p , m_size * sizeof (T));
15151514 }
15161515#if defined(__GNUC__) && !defined(__clang__)
15171516#pragma GCC diagnostic pop
1518- #endif
15191517#endif
15201518 }
15211519 else
@@ -1650,13 +1648,11 @@ namespace basisu
16501648#if defined(__GNUC__) && !defined(__clang__)
16511649#pragma GCC diagnostic push
16521650#pragma GCC diagnostic ignored "-Wclass-memaccess"
1653- #endif
16541651#endif
16551652 if ((m_p) && (other.m_p ))
16561653 memcpy ((void *)m_p, other.m_p , other.m_size * sizeof (T));
16571654#if defined(__GNUC__) && !defined(__clang__)
16581655#pragma GCC diagnostic pop
1659- #endif
16601656#endif
16611657 }
16621658 else
@@ -2239,7 +2235,6 @@ namespace basisu
22392235
22402236#if defined(__GNUC__) && !defined(__clang__)
22412237#pragma GCC diagnostic pop
2242- #endif
22432238#endif
22442239 }
22452240 else
@@ -2488,13 +2483,11 @@ namespace basisu
24882483#if defined(__GNUC__) && !defined(__clang__)
24892484#pragma GCC diagnostic push
24902485#pragma GCC diagnostic ignored "-Wclass-memaccess"
2491- #endif
24922486#endif
24932487 memset (m_p, *reinterpret_cast <const uint8_t *>(&o), m_size);
24942488
24952489#if defined(__GNUC__) && !defined(__clang__)
24962490#pragma GCC diagnostic pop
2497- #endif
24982491#endif
24992492 }
25002493 else
0 commit comments