aboutsummaryrefslogtreecommitdiff
path: root/src/gif.c
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-07-28 16:40:09 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-08-07 16:50:35 +0200
commit1e2f9219883452ef7da37c3c984b3e3d2939656b (patch)
treed1414af1325ab9f90e37305800e3a748d90ddf9d /src/gif.c
parent0220c850a043af46385d6cd6cf4ffa9ceb5696e3 (diff)
Fix pedantic warnings
Reviewed-by: dogma
Diffstat (limited to 'src/gif.c')
-rw-r--r--src/gif.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gif.c b/src/gif.c
index 2346e2ae..a104ca1d 100644
--- a/src/gif.c
+++ b/src/gif.c
@@ -975,7 +975,7 @@ static size_t Gif_process_bytes(DilloGif *gif, const uchar_t *ibuf,
ibuf += mysize;
if (gif->state != 1)
break;
-
+ /* fallthrough */
case 1:
mysize = Gif_get_descriptor(gif, Buf, ibuf, tmp_bufsize);
if (!mysize)
@@ -983,7 +983,7 @@ static size_t Gif_process_bytes(DilloGif *gif, const uchar_t *ibuf,
tmp_bufsize -= mysize;
ibuf += mysize;
gif->state = 2;
-
+ /* fallthrough */
case 2:
/* Ok, this loop construction looks weird. It implements the <Data>* of
* the GIF grammar. All sorts of stuff is allocated to set up for the
@@ -996,7 +996,7 @@ static size_t Gif_process_bytes(DilloGif *gif, const uchar_t *ibuf,
ibuf += mysize;
if (gif->state != 3)
break;
-
+ /* fallthrough */
case 3:
/* get an image byte */
/* The users sees all of this stuff */
@@ -1005,7 +1005,7 @@ static size_t Gif_process_bytes(DilloGif *gif, const uchar_t *ibuf,
break;
ibuf += mysize;
tmp_bufsize -= mysize;
-
+ /* fallthrough */
default:
/* error - just consume all input */
tmp_bufsize = 0;