diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-05-26 19:23:19 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-05-26 19:32:44 +0300 |
commit | 7438f0c6c0513dec73c0b91e62c5fc52bbcde3dd (patch) | |
tree | b92703b8fd4da3b2762d358978828f4cc9201bf1 /source/blender/editors/transform/transform_mode.h | |
parent | de3d54eb9a4fa9ddb1046190ba13daacc4f1dea1 (diff) |
Cleanup: array-parameter warning with GCC 11
Pass the string size as this is less error prone in general.
Diffstat (limited to 'source/blender/editors/transform/transform_mode.h')
-rw-r--r-- | source/blender/editors/transform/transform_mode.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/transform/transform_mode.h b/source/blender/editors/transform/transform_mode.h index 106dc68c9ee..874a5ebc0a8 100644 --- a/source/blender/editors/transform/transform_mode.h +++ b/source/blender/editors/transform/transform_mode.h @@ -47,7 +47,7 @@ void protectedTransBits(short protectflag, float vec[3]); void protectedSizeBits(short protectflag, float size[3]); void constraintTransLim(TransInfo *t, TransData *td); void constraintSizeLim(TransInfo *t, TransData *td); -void headerRotation(TransInfo *t, char *str, float final); +void headerRotation(TransInfo *t, char *str, int str_len, float final); void ElementRotation_ex(TransInfo *t, TransDataContainer *tc, TransData *td, @@ -55,7 +55,7 @@ void ElementRotation_ex(TransInfo *t, const float *center); void ElementRotation( TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3], const short around); -void headerResize(TransInfo *t, const float vec[3], char *str); +void headerResize(TransInfo *t, const float vec[3], char *str, int str_len); void ElementResize(TransInfo *t, TransDataContainer *tc, TransData *td, float mat[3][3]); short getAnimEdit_SnapMode(TransInfo *t); void doAnimEdit_SnapFrame( |