mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 01:07:51 -04:00
general: Fix a couple more compiler warnings
- express: Fix a warning when compiling for debug - dtoolutil: Give TextEncoder a virtual destructor
This commit is contained in:
parent
84ed19e8a7
commit
602ea6ebf4
@ -44,6 +44,8 @@ PUBLISHED:
|
|||||||
INLINE TextEncoder();
|
INLINE TextEncoder();
|
||||||
INLINE TextEncoder(const TextEncoder ©);
|
INLINE TextEncoder(const TextEncoder ©);
|
||||||
|
|
||||||
|
virtual ~TextEncoder() = default;
|
||||||
|
|
||||||
INLINE void set_encoding(Encoding encoding);
|
INLINE void set_encoding(Encoding encoding);
|
||||||
INLINE Encoding get_encoding() const;
|
INLINE Encoding get_encoding() const;
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ INLINE void set_matrix_view(Py_buffer &view, int flags, int length, int size, bo
|
|||||||
mat_size = sizeof(UnalignedLMatrix4d);
|
mat_size = sizeof(UnalignedLMatrix4d);
|
||||||
} else {
|
} else {
|
||||||
nassertv_always(false);
|
nassertv_always(false);
|
||||||
|
return; // Make sure compiler knows control flow doesn't proceed.
|
||||||
}
|
}
|
||||||
|
|
||||||
view.len = length * mat_size;
|
view.len = length * mat_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user