Cleanup: missing declaration warnings & spelling in comments

This commit is contained in:
Campbell Barton 2022-04-29 09:24:25 +10:00
parent 9a25a34e42
commit 1e23304fbc
5 changed files with 7 additions and 5 deletions

View File

@ -1215,7 +1215,7 @@ static void object_asset_pre_save(void *asset_ptr, struct AssetMetaData *asset_d
}
}
AssetTypeInfo AssetType_OB = {
static AssetTypeInfo AssetType_OB = {
/* pre_save_fn */ object_asset_pre_save,
};

View File

@ -11,6 +11,8 @@
#include "DRW_render.h"
#include "eevee_engine.h" /* Own include. */
struct EEVEE_Data {
DrawEngineType *engine_type;
DRWViewportEmptyList *fbl;

View File

@ -203,7 +203,7 @@ static void update_overlay_strip_poistion_data(bContext *C, const int mval[2])
float end_frame = coords->start_frame + coords->strip_len;
if (coords->use_snapping) {
/* Do snapping via the exsiting transform code. */
/* Do snapping via the existing transform code. */
int snap_delta;
float snap_frame;
bool valid_snap;

View File

@ -561,7 +561,7 @@ static void v3d_cursor_snap_context_ensure(Scene *scene)
}
}
static bool v3d_cursor_snap_calc_plane()
static bool v3d_cursor_snap_calc_plane(void)
{
/* If any of the states require the plane, calculate the `plane_omat`. */
LISTBASE_FOREACH (SnapStateIntern *, state, &g_data_intern.state_intern) {

View File

@ -30,7 +30,7 @@ namespace blender::io::obj {
const int SMOOTH_GROUP_DISABLED = 0;
const int SMOOTH_GROUP_DEFAULT = 1;
const char *DEFORM_GROUP_DISABLED = "off";
static const char *DEFORM_GROUP_DISABLED = "off";
/* There is no deform group default name. Use what the user set in the UI. */
/**
@ -38,7 +38,7 @@ const char *DEFORM_GROUP_DISABLED = "off";
* Once a material is assigned, it cannot be turned off; it can only be changed.
* If a material name is not specified, a white material is used.
* So an empty material name is written. */
const char *MATERIAL_GROUP_DISABLED = "";
static const char *MATERIAL_GROUP_DISABLED = "";
void OBJWriter::write_vert_uv_normal_indices(FormatHandler<eFileType::OBJ> &fh,
const IndexOffsets &offsets,