From 9f120328da597207fb7d45f7383ada05ea807c7d Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Thu, 22 Feb 2018 22:52:58 -0500 Subject: Abort on other values of enums in pngo --- bin/pngo.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bin') diff --git a/bin/pngo.c b/bin/pngo.c index 9bc85d0a..a0ecfd0f 100644 --- a/bin/pngo.c +++ b/bin/pngo.c @@ -132,6 +132,7 @@ static size_t lineSize(void) { case INDEXED: return (header.width * 1 * header.depth + 7) / 8; case GRAYSCALE_ALPHA: return (header.width * 2 * header.depth + 7) / 8; case TRUECOLOR_ALPHA: return (header.width * 4 * header.depth + 7) / 8; + default: abort(); } } @@ -345,6 +346,7 @@ static uint8_t recon(enum Filter type, struct Bytes f) { case UP: return f.x + f.b; case AVERAGE: return f.x + ((uint32_t)f.a + (uint32_t)f.b) / 2; case PAETH: return f.x + paethPredictor(f); + default: abort(); } } @@ -355,6 +357,7 @@ static uint8_t filt(enum Filter type, struct Bytes f) { case UP: return f.x - f.b; case AVERAGE: return f.x - ((uint32_t)f.a + (uint32_t)f.b) / 2; case PAETH: return f.x - paethPredictor(f); + default: abort(); } } -- cgit 1.4.1 c?id=415cdd3e2f62dc3234d753789d70a059750d09cd&follow=1'>commit diff
path: root/bin/dash/src/mystring.c (unfollow)
Commit message (Expand)Author
2021-02-07Bump font size to 12June McEnroe
2021-02-07Fully configure and rebind cwmJune McEnroe
2021-02-07Add BintiJune McEnroe
2021-02-07Finish configuring xtermJune McEnroe
2021-02-06Enable tapping, reverse scroll, set scaling in wsconsctlJune McEnroe
2021-02-06Set root window to black on purple snowJune McEnroe
2021-02-06Add xmodmap configurationJune McEnroe
2021-02-06Add initial OpenBSD X configurationJune McEnroe
2021-02-06Add xterm output to schemeJune McEnroe