Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/external/bsd/drm2/dist/drm/i915/display i915: Suppress s...
details: https://anonhg.NetBSD.org/src/rev/ea27f3c91381
branches: trunk
changeset: 1028975:ea27f3c91381
user: riastradh <riastradh%NetBSD.org@localhost>
date: Sun Dec 19 12:37:17 2021 +0000
description:
i915: Suppress spurious -Wmaybe-uninitialized warnings.
diffstat:
sys/external/bsd/drm2/dist/drm/i915/display/intel_display.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r afa85ad46856 -r ea27f3c91381 sys/external/bsd/drm2/dist/drm/i915/display/intel_display.c
--- a/sys/external/bsd/drm2/dist/drm/i915/display/intel_display.c Sun Dec 19 12:37:07 2021 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/display/intel_display.c Sun Dec 19 12:37:17 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: intel_display.c,v 1.11 2021/12/19 12:32:15 riastradh Exp $ */
+/* $NetBSD: intel_display.c,v 1.12 2021/12/19 12:37:17 riastradh Exp $ */
/*
* Copyright © 2006-2007 Intel Corporation
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intel_display.c,v 1.11 2021/12/19 12:32:15 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intel_display.c,v 1.12 2021/12/19 12:37:17 riastradh Exp $");
#include "intel_display.h" /* for pipe_drmhack */
@@ -943,7 +943,7 @@
clock.p = clock.p1 * clock.p2;
/* based on hardware requirement, prefer bigger m1,m2 values */
for (clock.m1 = limit->m1.min; clock.m1 <= limit->m1.max; clock.m1++) {
- unsigned int ppm;
+ unsigned int ppm = 0; /*XXXGCC*/
clock.m2 = DIV_ROUND_CLOSEST(target * clock.p * clock.n,
refclk * clock.m1);
@@ -1005,7 +1005,7 @@
for (clock.p2 = limit->p2.p2_fast;
clock.p2 >= limit->p2.p2_slow;
clock.p2 -= clock.p2 > 10 ? 2 : 1) {
- unsigned int error_ppm;
+ unsigned int error_ppm = 0; /*XXXGCC*/
clock.p = clock.p1 * clock.p2;
Home |
Main Index |
Thread Index |
Old Index