UI: Fix vec2 warning

Fix warning encountered on clang-504.0.40 on OSX 10.9:

obs/window-basic-main.cpp:2884:22: warning: suggest braces around
initialization of subobject [-Wmissing-braces]
		struct vec2 dir = {0.0f, 0.0f};
master
jp9000 2015-04-10 10:07:56 -07:00
parent 6e572d849f
commit 0fbf112491
1 changed files with 3 additions and 1 deletions

View File

@ -2881,9 +2881,11 @@ void OBSBasic::Nudge(int dist, MoveDir dir)
auto func = [] (obs_scene_t*, obs_sceneitem_t *item, void *param) auto func = [] (obs_scene_t*, obs_sceneitem_t *item, void *param)
{ {
MoveInfo *info = reinterpret_cast<MoveInfo*>(param); MoveInfo *info = reinterpret_cast<MoveInfo*>(param);
struct vec2 dir = {0.0f, 0.0f}; struct vec2 dir;
struct vec2 pos; struct vec2 pos;
vec2_set(&dir, 0.0f, 0.0f);
if (!obs_sceneitem_selected(item)) if (!obs_sceneitem_selected(item))
return true; return true;