Cleanup: remove space around identifiers in C-style comments

This commit is contained in:
Campbell Barton
2024-08-15 20:02:06 +10:00
parent b664ece0fe
commit b5e0b59736
47 changed files with 77 additions and 77 deletions

View File

@@ -168,7 +168,7 @@ class GHOST_Context : public GHOST_IContext {
};
virtual GHOST_TSuccess getVulkanSwapChainFormat(
GHOST_VulkanSwapChainData * /*r_swap_chain_data */) override
GHOST_VulkanSwapChainData * /*r_swap_chain_data*/) override
{
return GHOST_kFailure;
}

View File

@@ -343,7 +343,7 @@ GHOST_TTabletAPI GHOST_System::getTabletAPI()
return m_tabletAPI;
}
GHOST_TSuccess GHOST_System::getPixelAtCursor(float[3] /* r_color */) const
GHOST_TSuccess GHOST_System::getPixelAtCursor(float[3] /*r_color*/) const
{
return GHOST_kFailure;
}
@@ -432,7 +432,7 @@ GHOST_TSuccess GHOST_System::createFullScreenWindow(GHOST_Window **window,
settings.yPixels,
GHOST_kWindowStateNormal,
gpuSettings,
true /* exclusive */);
true /*exclusive*/);
return (*window == nullptr) ? GHOST_kFailure : GHOST_kSuccess;
}

View File

@@ -46,7 +46,7 @@ GHOST_IWindow *GHOST_SystemSDL::createWindow(const char *title,
GHOST_TWindowState state,
GHOST_GPUSettings gpuSettings,
const bool exclusive,
const bool /* is_dialog */,
const bool /*is_dialog*/,
const GHOST_IWindow *parentWindow)
{
GHOST_WindowSDL *window = nullptr;

View File

@@ -79,8 +79,8 @@ MEM_INLINE void MEM_trigger_error_on_memory_block(const void *address, const siz
ASAN_UNPOISON_MEMORY_REGION(address, size);
}
#else
MEM_INLINE void MEM_trigger_error_on_memory_block(const void * /* address */,
const size_t /* size */)
MEM_INLINE void MEM_trigger_error_on_memory_block(const void * /*address*/,
const size_t /*size*/)
{
# ifdef WITH_ASSERT_ABORT
abort();

View File

@@ -28,7 +28,7 @@ namespace blender::animrig {
* loop should continue or stop.
*/
template<typename CB>
static void ANIM_armature_foreach_bone(ListBase /* Bone */ *bones, CB callback)
static void ANIM_armature_foreach_bone(ListBase /*Bone*/ *bones, CB callback)
{
for (Bone *bone : blender::ListBaseWrapper<Bone>(bones)) {
callback(bone);
@@ -45,7 +45,7 @@ static void ANIM_armature_foreach_bone(ListBase /* Bone */ *bones, CB callback)
* loop should continue or stop.
*/
template<typename CB>
static void ANIM_armature_foreach_bone(const ListBase /* Bone */ *bones, CB callback)
static void ANIM_armature_foreach_bone(const ListBase /*Bone*/ *bones, CB callback)
{
for (const Bone *bone : blender::ConstListBaseWrapper<Bone>(bones)) {
callback(bone);

View File

@@ -54,7 +54,7 @@ static CLG_LogRef LOG = {"bke.nla"};
*
* The active strip may or may not be on the active track.
*/
static void nla_tweakmode_find_active(const ListBase /* NlaTrack */ *nla_tracks,
static void nla_tweakmode_find_active(const ListBase /*NlaTrack*/ *nla_tracks,
NlaTrack **r_track_of_active_strip,
NlaStrip **r_active_strip);
@@ -237,8 +237,8 @@ void BKE_nla_tracks_copy(Main *bmain, ListBase *dst, const ListBase *src, const
* index from `strips_dest`.
*/
static NlaStrip *find_active_strip_from_listbase(const NlaStrip *active_strip,
const ListBase /* NlaStrip */ *strips_source,
const ListBase /* NlaStrip */ *strips_dest)
const ListBase /*NlaStrip*/ *strips_source,
const ListBase /*NlaStrip*/ *strips_dest)
{
BLI_assert_msg(BLI_listbase_count(strips_source) == BLI_listbase_count(strips_dest),
"Expecting the same number of source and destination strips");
@@ -1332,7 +1332,7 @@ bool BKE_nlatrack_is_nonlocal_in_liboverride(const ID *id, const NlaTrack *nlt)
/* NLA Strips -------------------------------------- */
static NlaStrip *nlastrip_find_active(ListBase /* NlaStrip */ *strips)
static NlaStrip *nlastrip_find_active(ListBase /*NlaStrip*/ *strips)
{
LISTBASE_FOREACH (NlaStrip *, strip, strips) {
if (strip->flag & NLASTRIP_FLAG_ACTIVE) {
@@ -1455,7 +1455,7 @@ void BKE_nlastrip_set_active(AnimData *adt, NlaStrip *strip)
}
}
static NlaStrip *nlastrip_find_by_name(ListBase /* NlaStrip */ *strips, const char *name)
static NlaStrip *nlastrip_find_by_name(ListBase /*NlaStrip*/ *strips, const char *name)
{
LISTBASE_FOREACH (NlaStrip *, strip, strips) {
if (STREQ(strip->name, name)) {
@@ -2191,7 +2191,7 @@ void BKE_nla_action_pushdown(AnimData *adt, const bool is_liboverride)
BKE_nlastrip_set_active(adt, strip);
}
static void nla_tweakmode_find_active(const ListBase /* NlaTrack */ *nla_tracks,
static void nla_tweakmode_find_active(const ListBase /*NlaTrack*/ *nla_tracks,
NlaTrack **r_track_of_active_strip,
NlaStrip **r_active_strip)
{

View File

@@ -38,7 +38,7 @@ struct PoseChannelBackup {
struct PoseBackup {
bool is_bone_selection_relevant;
ListBase /* PoseChannelBackup* */ backups;
ListBase /*PoseChannelBackup*/ backups;
};
/**

View File

@@ -1410,13 +1410,13 @@ void BKE_sound_update_scene_sound(void * /*handle*/, bSound * /*sound*/) {}
void BKE_sound_update_scene_listener(Scene * /*scene*/) {}
void BKE_sound_update_fps(Main * /*bmain*/, Scene * /*scene*/) {}
void BKE_sound_set_scene_sound_volume_at_frame(void * /*handle*/,
int /* frame */,
int /*frame*/,
float /*volume*/,
char /*animated*/)
{
}
void BKE_sound_set_scene_sound_pan_at_frame(void * /*handle*/,
int /* frame */,
int /*frame*/,
float /*pan*/,
char /*animated*/)
{

View File

@@ -72,7 +72,7 @@ int2 optimal_size_for_real_transform(int2 size)
char *job_data,
size_t element_size,
int number_of_jobs,
void * /* data */)
void * /*data*/)
{
threading::parallel_for(IndexRange(number_of_jobs), 1, [&](const IndexRange sub_range) {
for (const int64_t i : sub_range) {

View File

@@ -371,7 +371,7 @@ void mat3_normalized_to_quat_fast(float q[4], const float mat[3][3])
* BLI_ASSERT_UNIT_QUAT(), so it's likely that even after a few more
* transformations the quaternion will still be considered unit-ish. */
const float q_len_squared = dot_qtqt(q, q);
const float threshold = 0.0002f /* BLI_ASSERT_UNIT_EPSILON */ * 3;
const float threshold = 0.0002f /* #BLI_ASSERT_UNIT_EPSILON */ * 3;
if (fabs(q_len_squared - 1.0f) >= threshold) {
normalize_qt(q);
}

View File

@@ -14,7 +14,7 @@ SplitNode::SplitNode(bNode *editor_node) : Node(editor_node)
}
void SplitNode::convert_to_operations(NodeConverter &converter,
const CompositorContext & /* context */) const
const CompositorContext & /*context*/) const
{
const bNode *node = this->get_bnode();

View File

@@ -450,7 +450,7 @@ class GPUShaderCreator : public OCIO::GpuShaderCreator {
/* A stub implementation in case OCIO is disabled at build time. */
class GPUShaderCreator {
public:
static std::shared_ptr<GPUShaderCreator> Create(ResultPrecision /* precision */)
static std::shared_ptr<GPUShaderCreator> Create(ResultPrecision /*precision*/)
{
return std::make_shared<GPUShaderCreator>();
}

View File

@@ -22,10 +22,10 @@ namespace blender::realtime_compositor {
Context::Context(TexturePool &texture_pool) : texture_pool_(texture_pool) {}
void Context::populate_meta_data_for_pass(const Scene * /* scene*/,
int /* view_layer_id */,
const char * /* pass_name */,
MetaData & /* meta_data */) const
void Context::populate_meta_data_for_pass(const Scene * /*scene*/,
int /*view_layer_id*/,
const char * /*pass_name*/,
MetaData & /*meta_data*/) const
{
}

View File

@@ -138,7 +138,7 @@ class Context : public realtime_compositor::Context {
return DRW_viewport_texture_list_get()->color;
}
GPUTexture *get_viewer_output_texture(realtime_compositor::Domain /* domain */,
GPUTexture *get_viewer_output_texture(realtime_compositor::Domain /*domain*/,
bool /*is_data*/) override
{
return DRW_viewport_texture_list_get()->color;

View File

@@ -761,7 +761,7 @@ static void ANIM_OT_slot_unassign_object(wmOperatorType *ot)
ot->flag = OPTYPE_REGISTER | OPTYPE_UNDO;
}
static int convert_action_exec(bContext *C, wmOperator * /* op */)
static int convert_action_exec(bContext *C, wmOperator * /*op*/)
{
using namespace blender;

View File

@@ -445,7 +445,7 @@ static int insert_key_exec(bContext *C, wmOperator *op)
return insert_key(C, op);
}
static int insert_key_invoke(bContext *C, wmOperator *op, const wmEvent * /* event */)
static int insert_key_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/)
{
/* The depsgraph needs to be in an evaluated state to ensure the values we get from the
* properties are actually the values of the current frame. However we cannot do that in the exec

View File

@@ -169,9 +169,9 @@ Object *poseAnim_object_get(Object *ob_);
* Build up a list of tPChanFCurveLink. First only selected, and if that yields no result, all
* visible.
*/
void poseAnim_mapping_get(bContext *C, ListBase /* tPChanFCurveLink */ *pfLinks);
void poseAnim_mapping_get(bContext *C, ListBase /*tPChanFCurveLink*/ *pfLinks);
/** Free F-Curve <-> PoseChannel links. */
void poseAnim_mapping_free(ListBase /* tPChanFCurveLink */ *pfLinks);
void poseAnim_mapping_free(ListBase /*tPChanFCurveLink*/ *pfLinks);
/**
* Helper for apply() / reset() - refresh the data.

View File

@@ -55,7 +55,7 @@ static CLG_LogRef LOG = {"ed.undo.armature"};
* bones and collections together.
*/
static void remap_ebone_bone_collection_references(
ListBase /* EditBone */ *edit_bones,
ListBase /*EditBone*/ *edit_bones,
const blender::Map<BoneCollection *, BoneCollection *> &bcoll_map)
{
LISTBASE_FOREACH (EditBone *, ebone, edit_bones) {
@@ -72,7 +72,7 @@ static void remap_ebone_bone_collection_references(
struct UndoArmature {
EditBone *act_edbone;
char active_collection_name[MAX_NAME];
ListBase /* EditBone */ ebones;
ListBase /*EditBone*/ ebones;
BoneCollection **collection_array;
int collection_array_num;
int collection_root_count;

View File

@@ -794,8 +794,8 @@ static int pose_copy_exec(bContext *C, wmOperator *op)
PartialWriteContext::IDAddOptions{PartialWriteContext::IDAddOperations(
PartialWriteContext::IDAddOperations::SET_FAKE_USER |
PartialWriteContext::IDAddOperations::SET_CLIPBOARD_MARK)},
[ob](LibraryIDLinkCallbackData *cb_data, PartialWriteContext::IDAddOptions /* options */)
-> PartialWriteContext::IDAddOperations {
[ob](LibraryIDLinkCallbackData *cb_data,
PartialWriteContext::IDAddOptions /*options*/) -> PartialWriteContext::IDAddOperations {
/* Only include `ob->data` (i.e. the Armature) dependency. */
if (*(cb_data->id_pointer) == ob->data) {
return PartialWriteContext::IDAddOperations::ADD_DEPENDENCIES;

View File

@@ -944,7 +944,7 @@ bool select_box(const ViewContext &vc,
deformation,
[&](const IndexRange range,
const Span<float3> positions,
StringRef /* selection_attribute_name */) {
StringRef /*selection_attribute_name*/) {
mask.slice_content(range).foreach_index(GrainSize(512), [&](const int curve_i) {
const IndexRange points = points_by_curve[curve_i];
if (points.size() == 1) {
@@ -1043,7 +1043,7 @@ bool select_lasso(const ViewContext &vc,
deformation,
[&](const IndexRange range,
const Span<float3> positions,
StringRef /* selection_attribute_name */) {
StringRef /*selection_attribute_name*/) {
mask.slice_content(range).foreach_index(GrainSize(512), [&](const int curve_i) {
const IndexRange points = points_by_curve[curve_i];
if (points.size() == 1) {
@@ -1152,7 +1152,7 @@ bool select_circle(const ViewContext &vc,
deformation,
[&](const IndexRange range,
const Span<float3> positions,
StringRef /* selection_attribute_name */) {
StringRef /*selection_attribute_name*/) {
mask.slice_content(range).foreach_index(GrainSize(512), [&](const int curve_i) {
const IndexRange points = points_by_curve[curve_i];
if (points.size() == 1) {

View File

@@ -124,7 +124,7 @@ class StepDrawingGeometry : public StepDrawingGeometryBase {
public:
void encode(const GreasePencilDrawing &drawing_geometry,
const int64_t drawing_index,
StepEncodeStatus & /* encode_status */)
StepEncodeStatus & /*encode_status*/)
{
BLI_assert(drawing_index >= 0 && drawing_index < INT32_MAX);
index_ = int(drawing_index);
@@ -159,7 +159,7 @@ class StepDrawingReference : public StepDrawingGeometryBase {
public:
void encode(const GreasePencilDrawingReference &drawing_reference,
const int64_t drawing_index,
StepEncodeStatus & /* encode_status */)
StepEncodeStatus & /*encode_status*/)
{
BLI_assert(drawing_index >= 0 && drawing_index < INT32_MAX);
index_ = int(drawing_index);

View File

@@ -51,7 +51,7 @@ struct FileIndexerEntry {
* Contains all entries of a blend file.
*/
struct FileIndexerEntries {
LinkNode /* FileIndexerEntry */ *entries;
LinkNode /*FileIndexerEntry*/ *entries;
};
using FileIndexerInitUserDataFunc = void *(*)(const char *root_directory,

View File

@@ -143,7 +143,7 @@ const ActKeyColumn *ED_keylist_find_prev(const AnimKeylist *keylist, float cfra)
const ActKeyColumn *ED_keylist_find_any_between(const AnimKeylist *keylist,
const Range2f frame_range);
bool ED_keylist_is_empty(const AnimKeylist *keylist);
const ListBase /* ActKeyColumn */ *ED_keylist_listbase(const AnimKeylist *keylist);
const ListBase /*ActKeyColumn*/ *ED_keylist_listbase(const AnimKeylist *keylist);
bool ED_keylist_all_keys_frame_range(const AnimKeylist *keylist, Range2f *r_frame_range);
/**
* Return the selected key-frame's range. If none are selected, return False and

View File

@@ -22,7 +22,7 @@
namespace blender::ed::io {
int filesel_drop_import_invoke(bContext *C, wmOperator *op, const wmEvent * /* event */)
int filesel_drop_import_invoke(bContext *C, wmOperator *op, const wmEvent * /*event*/)
{
PropertyRNA *filepath_prop = RNA_struct_find_property(op->ptr, "filepath");

View File

@@ -370,7 +370,7 @@ void screen_draw_join_highlight(ScrArea *sa1, ScrArea *sa2, eScreenDir dir)
screen_draw_area_icon(&sa2new, ED_area_icon(sa1), icon_color, bg_color);
}
void screen_draw_dock_preview(const wmWindow * /* win */,
void screen_draw_dock_preview(const wmWindow * /*win*/,
ScrArea *source,
ScrArea *target,
AreaDockTarget dock_target)

View File

@@ -549,7 +549,7 @@ bool vert_has_unique_face_set(const GroupedSpan<int> vert_to_face_map,
return true;
}
bool vert_has_unique_face_set(const BMVert * /* vert */)
bool vert_has_unique_face_set(const BMVert * /*vert*/)
{
/* TODO: Obviously not fully implemented yet. Needs to be implemented for Relax Face Sets brush
* to work. */

View File

@@ -56,7 +56,7 @@ using namespace blender;
void draw_channel_names(bContext *C,
bAnimContext *ac,
ARegion *region,
const ListBase /* bAnimListElem */ &anim_data)
const ListBase /*bAnimListElem*/ &anim_data)
{
bAnimListElem *ale;
View2D *v2d = &region->v2d;

View File

@@ -33,7 +33,7 @@ void action_buttons_register(ARegionType *art);
void draw_channel_names(bContext *C,
bAnimContext *ac,
ARegion *region,
const ListBase /* bAnimListElem */ &anim_data);
const ListBase /*bAnimListElem*/ &anim_data);
/**
* Draw keyframes in each channel.
*/

View File

@@ -1378,8 +1378,8 @@ void CONSOLE_OT_select_set(wmOperatorType *ot)
}
static int console_modal_select_all_invoke(bContext *C,
wmOperator * /* op */,
const wmEvent * /* event */)
wmOperator * /*op*/,
const wmEvent * /*event*/)
{
ScrArea *area = CTX_wm_area(C);
SpaceConsole *sc = CTX_wm_space_console(C);

View File

@@ -1521,7 +1521,7 @@ void graph_draw_curves(bAnimContext *ac, SpaceGraph *sipo, ARegion *region, shor
void graph_draw_channel_names(bContext *C,
bAnimContext *ac,
ARegion *region,
const ListBase /* bAnimListElem */ &anim_data)
const ListBase /*bAnimListElem*/ &anim_data)
{
bAnimListElem *ale;

View File

@@ -26,7 +26,7 @@ struct bContext;
void graph_draw_channel_names(bContext *C,
bAnimContext *ac,
ARegion *region,
const ListBase /* bAnimListElem */ &anim_data);
const ListBase /*bAnimListElem*/ &anim_data);
/**
* This is called twice from `space_graph.cc`, #graph_main_region_draw()

View File

@@ -966,7 +966,7 @@ void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region)
void draw_nla_track_list(const bContext *C,
bAnimContext *ac,
ARegion *region,
const ListBase /* bAnimListElem */ &anim_data)
const ListBase /*bAnimListElem*/ &anim_data)
{
SpaceNla *snla = reinterpret_cast<SpaceNla *>(ac->sl);

View File

@@ -30,7 +30,7 @@ void draw_nla_main_data(bAnimContext *ac, SpaceNla *snla, ARegion *region);
void draw_nla_track_list(const bContext *C,
bAnimContext *ac,
ARegion *region,
const ListBase /* bAnimListElem */ &anim_data);
const ListBase /*bAnimListElem*/ &anim_data);
/* **************************************** */
/* `nla_select.cc` */

View File

@@ -85,7 +85,7 @@ static void sequencer_retiming_data_hide_all(ListBase *seqbase)
}
}
static int sequencer_retiming_data_show_exec(bContext *C, wmOperator * /* op */)
static int sequencer_retiming_data_show_exec(bContext *C, wmOperator * /*op*/)
{
Scene *scene = CTX_data_scene(C);
Editing *ed = SEQ_editing_get(scene);
@@ -610,7 +610,7 @@ static SeqRetimingKey *ensure_left_and_right_keys(const bContext *C, Sequence *s
}
/* Return speed of existing segment or strip. Assume 1 element is selected. */
static float strip_speed_get(bContext *C, const wmOperator * /* op */)
static float strip_speed_get(bContext *C, const wmOperator * /*op*/)
{
/* Strip mode. */
if (!sequencer_retiming_mode_is_active(C)) {

View File

@@ -136,8 +136,8 @@ execute_array(TypeSequence<ParamTags...> /*param_tags*/,
std::index_sequence<I...> /*indices*/,
ElementFn element_fn,
MaskT mask,
/* Use restrict to tell the compiler that pointer inputs do not alias each
* other. This is important for some compiler optimizations. */
/* Use restrict to tell the compiler that pointer inputs do not alias
* each other. This is important for some compiler optimizations. */
Args &&__restrict... args)
{
if constexpr (std::is_same_v<std::decay_t<MaskT>, IndexRange>) {

View File

@@ -14,7 +14,7 @@ namespace blender::gpu {
VKPipelinePool::VKPipelinePool()
{
/* Initialize VkComputePipelineCreateInfo*/
/* Initialize VkComputePipelineCreateInfo */
vk_compute_pipeline_create_info_.sType = VK_STRUCTURE_TYPE_COMPUTE_PIPELINE_CREATE_INFO;
vk_compute_pipeline_create_info_.pNext = nullptr;
vk_compute_pipeline_create_info_.flags = 0;

View File

@@ -443,7 +443,7 @@ static ImBuf *imb_load_jp2_stream(opj_stream_t *stream,
}
ibuf->ftype = IMB_FTYPE_JP2;
if (true /* is_jp2 */) {
if (true /*is_jp2*/) {
ibuf->foptions.flag |= JP2_JP2;
}
else {

View File

@@ -204,7 +204,7 @@ static bNode *append_node(bNode *dst_node,
* handles copying textures, if required.
*/
static bool node_search(bNode *fromnode,
bNode * /* tonode */,
bNode * /*tonode*/,
void *userdata,
const bool /*reversed*/)
{

View File

@@ -24,7 +24,7 @@ bool USDInstanceReader::valid() const
return prim_.IsValid() && prim_.IsInstance();
}
void USDInstanceReader::create_object(Main *bmain, const double /* motionSampleTime */)
void USDInstanceReader::create_object(Main *bmain, const double /*motionSampleTime*/)
{
this->object_ = BKE_object_add_only_object(bmain, OB_EMPTY, name_.c_str());
this->object_->data = nullptr;

View File

@@ -48,7 +48,7 @@ bool USDPointInstancerReader::valid() const
return prim_.IsValid() && prim_.IsA<pxr::UsdGeomPointInstancer>();
}
void USDPointInstancerReader::create_object(Main *bmain, const double /* motionSampleTime */)
void USDPointInstancerReader::create_object(Main *bmain, const double /*motionSampleTime*/)
{
void *point_cloud = BKE_pointcloud_add(bmain, name_.c_str());
this->object_ = BKE_object_add_only_object(bmain, OB_POINTCLOUD, name_.c_str());

View File

@@ -3264,7 +3264,7 @@ static void rna_NodeCryptomatte_layer_name_set(PointerRNA *ptr, int new_value)
}
}
static const EnumPropertyItem *rna_NodeCryptomatte_layer_name_itemf(bContext * /* C */,
static const EnumPropertyItem *rna_NodeCryptomatte_layer_name_itemf(bContext * /*C*/,
PointerRNA *ptr,
PropertyRNA * /*prop*/,
bool *r_free)

View File

@@ -89,7 +89,7 @@ static void node_shader_update_tex_gabor(bNodeTree *ntree, bNode *node)
static int node_shader_gpu_tex_gabor(GPUMaterial *material,
bNode *node,
bNodeExecData * /* execdata */,
bNodeExecData * /*execdata*/,
GPUNodeStack *in,
GPUNodeStack *out)
{

View File

@@ -206,19 +206,19 @@ struct BufferOrOffset {
#define GLenum_str "i"
#define GLenum_var(num) bgl_var##num
#define GLenum_ref(num) &bgl_var##num
#define GLenum_def(num) /* unsigned */ int GLenum_var(num)
#define GLenum_def(num) /*unsigned*/ int GLenum_var(num)
/* Type: `typedef uint GLboolean`. */
#define GLboolean_str "b"
#define GLboolean_var(num) bgl_var##num
#define GLboolean_ref(num) &bgl_var##num
#define GLboolean_def(num) /* unsigned */ char GLboolean_var(num)
#define GLboolean_def(num) /*unsigned*/ char GLboolean_var(num)
/* Type: `typedef uint GLbitfield`. */
#define GLbitfield_str "i"
#define GLbitfield_var(num) bgl_var##num
#define GLbitfield_ref(num) &bgl_var##num
#define GLbitfield_def(num) /* unsigned */ int GLbitfield_var(num)
#define GLbitfield_def(num) /*unsigned*/ int GLbitfield_var(num)
#if 0
/* Type: `typedef signed char GLbyte`. */
@@ -262,28 +262,28 @@ struct BufferOrOffset {
#define GLubyte_str "B"
#define GLubyte_var(num) bgl_var##num
#define GLubyte_ref(num) &bgl_var##num
#define GLubyte_def(num) /* unsigned */ char GLubyte_var(num)
#define GLubyte_def(num) /*unsigned*/ char GLubyte_var(num)
#if 0
/* Type: `typedef ushort GLushort`. */
# define GLushort_str "H"
# define GLushort_var(num) bgl_var##num
# define GLushort_ref(num) &bgl_var##num
# define GLushort_def(num) /* unsigned */ short GLushort_var(num)
# define GLushort_def(num) /*unsigned*/ short GLushort_var(num)
#endif
/* Type: `typedef uint GLuint`. */
#define GLuint_str "I"
#define GLuint_var(num) bgl_var##num
#define GLuint_ref(num) &bgl_var##num
#define GLuint_def(num) /* unsigned */ int GLuint_var(num)
#define GLuint_def(num) /*unsigned*/ int GLuint_var(num)
/* Type: `typedef uint GLuint64`. */
#if 0
# define GLuint64_str "Q"
# define GLuint64_var(num) bgl_var##num
# define GLuint64_ref(num) &bgl_var##num
# define GLuint64_def(num) /* unsigned */ int GLuint64_var(num)
# define GLuint64_def(num) /*unsigned*/ int GLuint64_var(num)
#endif
/* Type: `typedef uint GLsync`. */
@@ -291,7 +291,7 @@ struct BufferOrOffset {
# define GLsync_str "I"
# define GLsync_var(num) bgl_var##num
# define GLsync_ref(num) &bgl_var##num
# define GLsync_def(num) /* unsigned */ int GLsync_var(num)
# define GLsync_def(num) /*unsigned*/ int GLsync_var(num)
#endif
/* Type: `typedef float GLfloat`. */

View File

@@ -6872,7 +6872,7 @@ PyTypeObject pyrna_struct_Type = {
/*tp_basicsize*/ sizeof(BPy_StructRNA),
/*tp_itemsize*/ 0,
/*tp_dealloc*/ (destructor)pyrna_struct_dealloc,
/*tp_vectorcall_offset */ 0,
/*tp_vectorcall_offset*/ 0,
/*tp_getattr*/ nullptr,
/*tp_setattr*/ nullptr,
/*tp_as_async*/ nullptr,

View File

@@ -416,7 +416,7 @@ class Context : public realtime_compositor::Context {
BKE_stamp_info_callback(
&callback_data,
render_result->stamp_data,
[](void *user_data, const char *key, char *value, int /* value_length */) {
[](void *user_data, const char *key, char *value, int /*value_length*/) {
StampCallbackData *data = static_cast<StampCallbackData *>(user_data);
const std::string manifest_key = bke::cryptomatte::BKE_cryptomatte_meta_data_key(

View File

@@ -3130,9 +3130,9 @@ static ImBuf *do_text_effect(const SeqRenderData *context,
Sequence *seq,
float /*timeline_frame*/,
float /*fac*/,
ImBuf * /* ibuf1*/,
ImBuf * /* ibuf2*/,
ImBuf * /* ibuf3*/)
ImBuf * /*ibuf1*/,
ImBuf * /*ibuf2*/,
ImBuf * /*ibuf3*/)
{
/* NOTE: text rasterization only fills in part of output image,
* need to clear it. */

View File

@@ -349,7 +349,7 @@ SeqRetimingKey *SEQ_retiming_add_key(const Scene *scene, Sequence *seq, const in
return added_key;
}
void SEQ_retiming_transition_key_frame_set(const Scene * /*scene */,
void SEQ_retiming_transition_key_frame_set(const Scene * /*scene*/,
const Sequence *seq,
SeqRetimingKey *key,
const int timeline_frame)