summaryrefslogtreecommitdiff
path: root/fb
diff options
context:
space:
mode:
authorEric Anholt <anholt@FreeBSD.org>2006-06-21 09:34:55 -0700
committerEric Anholt <anholt@FreeBSD.org>2006-06-23 13:56:20 -0700
commitc7ac485a59709572307b9a4a9abacc52c7021b65 (patch)
tree979dbc66d9dc1bab11bd044bd9475a81c2f98df3 /fb
parent2cf1f39ca974c81a2f52d2f7509aa3d098a87176 (diff)
Remove the default case from fbcompose.c switches which should cover all cases.
Instead, stick the NULL return default case afterwards, so that the compiler can warn us when we've got unimplemented cases. Removes some unimplemented and unused 8bpp, depth 4 picture format names.
Diffstat (limited to 'fb')
-rw-r--r--fb/fbcompose.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fb/fbcompose.c b/fb/fbcompose.c
index 03adab456..3a61e975a 100644
--- a/fb/fbcompose.c
+++ b/fb/fbcompose.c
@@ -573,9 +573,9 @@ static fetchProc fetchProcForPicture (PicturePtr pict)
/* 1bpp formats */
case PICT_a1: return fbFetch_a1;
case PICT_g1: return fbFetch_g1;
- default:
- return NULL;
}
+
+ return NULL;
}
/*
@@ -1010,9 +1010,9 @@ static fetchPixelProc fetchPixelProcForPicture (PicturePtr pict)
/* 1bpp formats */
case PICT_a1: return fbFetchPixel_a1;
case PICT_g1: return fbFetchPixel_g1;
- default:
- return NULL;
}
+
+ return NULL;
}