Why do I get "error: variable 'sum_r' set but not used [-Werror,-Wunused-but-set-variable]" when I set a variable inside a for loop?
Why do I get an error, error: variable ‘sum_r’ set but not used [-Werror,-Wunused-but-set-variable] when I set the variables sum_r sum_g, and sum_b in a for loop then try to change their values later in another for loop? Here is my current code: // Blur image void blur(int height, int width, RGBTRIPLE image[height][width]) { RGBTRIPLE… Read More Why do I get "error: variable 'sum_r' set but not used [-Werror,-Wunused-but-set-variable]" when I set a variable inside a for loop?