From 605a2c84903f7e97728cd14d39674c1dd94d539f Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Mon, 21 Sep 2015 06:59:50 +1000 Subject: Cleanup: warning, style --- source/blender/bmesh/intern/bmesh_queries.c | 2 +- source/blender/editors/screen/screen_edit.c | 4 ++-- source/blender/editors/space_file/file_draw.c | 2 +- source/blender/gpu/intern/gpu_extensions.c | 4 ++++ 4 files changed, 8 insertions(+), 4 deletions(-) (limited to 'source/blender') diff --git a/source/blender/bmesh/intern/bmesh_queries.c b/source/blender/bmesh/intern/bmesh_queries.c index 09284ea3549..1a8ea1e3a0d 100644 --- a/source/blender/bmesh/intern/bmesh_queries.c +++ b/source/blender/bmesh/intern/bmesh_queries.c @@ -317,7 +317,7 @@ float BM_loop_point_side_of_loop_test(const BMLoop *l, const float co[3]) * Check if a point is inside the edge defined by a loop * (within the plane defined by the loops edge & face normal). * - * \return signed, squared distablce to the edge plane, less than 0.0 when outside. + * \return signed, squared distance to the edge plane, less than 0.0 when outside. */ float BM_loop_point_side_of_edge_test(const BMLoop *l, const float co[3]) { diff --git a/source/blender/editors/screen/screen_edit.c b/source/blender/editors/screen/screen_edit.c index 569d6116111..1a1cc8894e6 100644 --- a/source/blender/editors/screen/screen_edit.c +++ b/source/blender/editors/screen/screen_edit.c @@ -1562,8 +1562,8 @@ bool ED_screen_set(bContext *C, bScreen *sc) } /* Always do visible update since it's possible new screen will - * have different layers visible in 3D viewpots. This is possible - * because of view3d.lock_camera_and_layers option. + * have different layers visible in 3D view-ports. + * This is possible because of view3d.lock_camera_and_layers option. */ DAG_on_visible_update(bmain, false); } diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c index 7d68e782a89..2d9ecbdf415 100644 --- a/source/blender/editors/space_file/file_draw.c +++ b/source/blender/editors/space_file/file_draw.c @@ -234,7 +234,7 @@ void file_draw_buttons(const bContext *C, ARegion *ar) const struct FileDirEntry *file = sfile->files ? filelist_file(sfile->files, params->active_file) : NULL; char const *str_exec; - if (file && FILENAME_IS_PARENT(file->relpath)){ + if (file && FILENAME_IS_PARENT(file->relpath)) { str_exec = IFACE_("Parent Directory"); } else if (file && file->typeflag & FILE_TYPE_DIR) { diff --git a/source/blender/gpu/intern/gpu_extensions.c b/source/blender/gpu/intern/gpu_extensions.c index 33f0cb655a6..e30eeebf934 100644 --- a/source/blender/gpu/intern/gpu_extensions.c +++ b/source/blender/gpu/intern/gpu_extensions.c @@ -1727,6 +1727,10 @@ GPUShader *GPU_shader_create_ex(const char *vertexcode, char standard_defines[MAX_DEFINE_LENGTH] = ""; char standard_extensions[MAX_EXT_DEFINE_LENGTH] = ""; +#ifndef WITH_OPENSUBDIV + UNUSED_VARS(flags); +#endif + if (!GLEW_ARB_vertex_shader || !GLEW_ARB_fragment_shader || (geocode && !GPU_geometry_shader_support())) return NULL; -- cgit v1.2.3