Fix a number of warnings

Structures with anonymous unions would a warning when you do a brace
assignment on them.

Also fixed some unused parameters and removed some unused variables.
This commit is contained in:
jp9000
2014-06-16 17:55:48 -07:00
parent f937d66fab
commit ed5b4f590c
4 changed files with 36 additions and 21 deletions

View File

@@ -228,11 +228,14 @@ static void update_item_transform(struct obs_scene_item *item)
uint32_t height = obs_source_getheight(item->source);
uint32_t cx = width;
uint32_t cy = height;
struct vec2 base_origin = {0.0f, 0.0f};
struct vec2 origin = {0.0f, 0.0f};
struct vec2 base_origin;
struct vec2 origin;
struct vec2 scale = item->scale;
struct calldata params = {0};
vec2_zero(&base_origin);
vec2_zero(&origin);
/* ----------------------- */
if (item->bounds_type != OBS_BOUNDS_NONE) {