Cleanup: quiet undeclared variable warnings
This commit is contained in:
parent
af5cfa7544
commit
702a2ba0ef
@ -148,6 +148,7 @@ void CLG_logref_init(CLG_LogRef *clg_ref);
|
||||
/** Declare outside function, declare as extern in header. */
|
||||
#define CLG_LOGREF_DECLARE_GLOBAL(var, id) \
|
||||
static CLG_LogRef _static_ ## var = {id}; \
|
||||
extern CLG_LogRef *var; \
|
||||
CLG_LogRef *var = &_static_ ## var
|
||||
|
||||
/** Initialize struct once. */
|
||||
|
@ -107,6 +107,8 @@ struct Depsgraph;
|
||||
|
||||
void BKE_material_eval(struct Depsgraph *depsgraph, struct Material *material);
|
||||
|
||||
extern struct Material defmaterial;
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -1065,4 +1065,7 @@ void BKE_nodetree_shading_params_eval(struct Depsgraph *depsgraph,
|
||||
struct bNodeTree *ntree_dst,
|
||||
const struct bNodeTree *ntree_src);
|
||||
|
||||
extern struct bNodeType NodeTypeUndefined;
|
||||
extern struct bNodeSocketType NodeSocketTypeUndefined;
|
||||
|
||||
#endif /* __BKE_NODE_H__ */
|
||||
|
@ -73,7 +73,7 @@
|
||||
#define NODE_DEFAULT_MAX_WIDTH 700
|
||||
|
||||
/* Fallback types for undefined tree, nodes, sockets */
|
||||
bNodeTreeType NodeTreeTypeUndefined;
|
||||
static bNodeTreeType NodeTreeTypeUndefined;
|
||||
bNodeType NodeTypeUndefined;
|
||||
bNodeSocketType NodeSocketTypeUndefined;
|
||||
|
||||
|
@ -554,6 +554,7 @@ static void clip_keymap(struct wmKeyConfig *keyconf)
|
||||
}
|
||||
|
||||
/* DO NOT make this static, this hides the symbol and breaks API generation script. */
|
||||
extern const char *clip_context_dir[]; /* quiet warning. */
|
||||
const char *clip_context_dir[] = {"edit_movieclip", "edit_mask", NULL};
|
||||
|
||||
static int clip_context(const bContext *C, const char *member, bContextDataResult *result)
|
||||
|
@ -432,6 +432,7 @@ static void sequencer_dropboxes(void)
|
||||
/* ************* end drop *********** */
|
||||
|
||||
/* DO NOT make this static, this hides the symbol and breaks API generation script. */
|
||||
extern const char *sequencer_context_dir[]; /* quiet warning. */
|
||||
const char *sequencer_context_dir[] = {"edit_mask", NULL};
|
||||
|
||||
static int sequencer_context(const bContext *C, const char *member, bContextDataResult *result)
|
||||
|
@ -214,6 +214,7 @@ void register_node_tree_type_cmp(void)
|
||||
ntreeTypeAdd(tt);
|
||||
}
|
||||
|
||||
extern void *COM_linker_hack; /* Quiet warning. */
|
||||
void *COM_linker_hack = NULL;
|
||||
|
||||
void ntreeCompositExecTree(Scene *scene, bNodeTree *ntree, RenderData *rd, int rendering, int do_preview,
|
||||
|
Loading…
Reference in New Issue
Block a user