diff --git a/source/build/include/build.h b/source/build/include/build.h index d2cc9ac7b..aded26a33 100644 --- a/source/build/include/build.h +++ b/source/build/include/build.h @@ -405,7 +405,7 @@ int32_t try_facespr_intersect(uspriteptr_t const spr, vec3_t const in, #define INITIALUPDATESECTORDIST 256 void updatesector(int const x, int const y, int * const sectnum) ATTRIBUTE((nonnull(3))); [[deprecated]] -inline void updatesector(int32_t const x, int32_t const y, int16_t * const sectnum) ATTRIBUTE((nonnull(3))) +inline void updatesector(int32_t const x, int32_t const y, int16_t * const sectnum) { int snum = *sectnum; updatesector(x, y, &snum); diff --git a/source/common/2d/v_2ddrawer.h b/source/common/2d/v_2ddrawer.h index f662de7ac..ab87085f5 100644 --- a/source/common/2d/v_2ddrawer.h +++ b/source/common/2d/v_2ddrawer.h @@ -132,7 +132,7 @@ public: RenderCommand() { - memset(this, 0, sizeof(*this)); + memset((void*)this, 0, sizeof(*this)); } // If these fields match, two draw commands can be batched.