From b6bbdee0490c6e72c17cdfe3fa03619667c0ff2f Mon Sep 17 00:00:00 2001 From: Alexandre Vicenzi Date: Fri, 27 Jan 2017 00:09:46 -0200 Subject: [PATCH] obs-filters: Fix compiler warnings static should come before const. Closes jp9000/obs-studio#778 --- plugins/obs-filters/color-correction-filter.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/plugins/obs-filters/color-correction-filter.c b/plugins/obs-filters/color-correction-filter.c index b72927cb4..e418d231e 100644 --- a/plugins/obs-filters/color-correction-filter.c +++ b/plugins/obs-filters/color-correction-filter.c @@ -70,11 +70,10 @@ struct color_correction_filter_data { struct vec3 half_unit; }; -const static float root3 = 0.57735f; -const static float red_weight = 0.299f; -const static float green_weight = 0.587f; -const static float blue_weight = 0.114f; - +static const float root3 = 0.57735f; +static const float red_weight = 0.299f; +static const float green_weight = 0.587f; +static const float blue_weight = 0.114f; /* * As the functions' namesake, this provides the internal name of your Filter,