From db8bc1d9829af7aeaf2ce1118f70d6d03fe4e81d Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Thu, 20 Jul 2017 23:51:15 +0200 Subject: Fix a few harmless maybe uninitialized warnings with GCC 5.4. GCC seems to detect uninitialized into function calls now, but then isn't always smart enough to see that it is actually initialized. Disabling this warning entirely seems a bit too much, so initialize a bit more now. --- source/blender/editors/space_image/image_ops.c | 1 + 1 file changed, 1 insertion(+) (limited to 'source/blender/editors/space_image/image_ops.c') diff --git a/source/blender/editors/space_image/image_ops.c b/source/blender/editors/space_image/image_ops.c index a0d67626940..3c64d1ebb71 100644 --- a/source/blender/editors/space_image/image_ops.c +++ b/source/blender/editors/space_image/image_ops.c @@ -1169,6 +1169,7 @@ static int image_sequence_get_len(ListBase *frames, int *ofs) } return frame_curr - (*ofs); } + *ofs = 0; return 0; } -- cgit v1.2.3