diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-20 12:28:21 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-20 12:30:19 +0300 |
commit | bbc5c1e36fc93e33fce4156f5064dfebe1129a57 (patch) | |
tree | d0631e65978720ce2eba8deede13ba0cc76821dc /source/blender/blenkernel/intern | |
parent | 20bc30706b9c810ea774d98a768734767f9e91be (diff) |
Cleanup: quiet extra-semicolon warning
Diffstat (limited to 'source/blender/blenkernel/intern')
-rw-r--r-- | source/blender/blenkernel/intern/particle.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/softbody.c | 2 | ||||
-rw-r--r-- | source/blender/blenkernel/intern/studiolight.c | 5 |
3 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/particle.c b/source/blender/blenkernel/intern/particle.c index 9e121d279ba..5234c2fb0ef 100644 --- a/source/blender/blenkernel/intern/particle.c +++ b/source/blender/blenkernel/intern/particle.c @@ -3143,7 +3143,7 @@ void psys_cache_edit_paths(Depsgraph *depsgraph, iter_data.use_weight = use_weight; if (use_weight) { - ; /* use weight painting colors now... */ + /* use weight painting colors now... */ } else { iter_data.sel_col[0] = (float)edit->sel_col[0] / 255.0f; diff --git a/source/blender/blenkernel/intern/softbody.c b/source/blender/blenkernel/intern/softbody.c index 37b6211916c..3a7c6527a50 100644 --- a/source/blender/blenkernel/intern/softbody.c +++ b/source/blender/blenkernel/intern/softbody.c @@ -3515,7 +3515,7 @@ void sbObjectStep(struct Depsgraph *depsgraph, return; } else if (cache_result == PTCACHE_READ_OLD) { - ; /* do nothing */ + /* pass */ } else if (/*ob->id.lib || */ ( cache->flag & diff --git a/source/blender/blenkernel/intern/studiolight.c b/source/blender/blenkernel/intern/studiolight.c index df48e505f6f..b64f6a1d076 100644 --- a/source/blender/blenkernel/intern/studiolight.c +++ b/source/blender/blenkernel/intern/studiolight.c @@ -129,12 +129,13 @@ static const char *STUDIOLIGHT_MATCAP_DEFAULT = "basic_1.exr"; static void studiolight_free(struct StudioLight *sl) { #define STUDIOLIGHT_DELETE_ICON(s) \ - { \ + do { \ if (s != 0) { \ BKE_icon_delete(s); \ s = 0; \ } \ - } + } while (0) + if (sl->free_function) { sl->free_function(sl, sl->free_function_data); } |