Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/riastradh-drm2]: src/sys/external/bsd/drm2/dist/drm Avoid empty-brace in...
details: https://anonhg.NetBSD.org/src/rev/d6b4d114d66f
branches: riastradh-drm2
changeset: 788100:d6b4d114d66f
user: riastradh <riastradh%NetBSD.org@localhost>
date: Wed Jul 24 02:14:25 2013 +0000
description:
Avoid empty-brace initializer in drm_mode_addfb in drm_crtc.c.
diffstat:
sys/external/bsd/drm2/dist/drm/drm_crtc.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diffs (16 lines):
diff -r 7040846ebf9e -r d6b4d114d66f sys/external/bsd/drm2/dist/drm/drm_crtc.c
--- a/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 02:14:10 2013 +0000
+++ b/sys/external/bsd/drm2/dist/drm/drm_crtc.c Wed Jul 24 02:14:25 2013 +0000
@@ -2172,7 +2172,12 @@
void *data, struct drm_file *file_priv)
{
struct drm_mode_fb_cmd *or = data;
+#ifdef __NetBSD__ /* XXX ...or just use memset. */
+ static const struct drm_mode_fb_cmd2 zero_fbcmd;
+ struct drm_mode_fb_cmd2 r = zero_fbcmd;
+#else
struct drm_mode_fb_cmd2 r = {};
+#endif
struct drm_mode_config *config = &dev->mode_config;
struct drm_framebuffer *fb;
int ret = 0;
Home |
Main Index |
Thread Index |
Old Index