Message ID | 0a16965a4be05dfd4e6c6425a12597f18261c8dc.1506443620.git.baruch@tkos.co.il (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/edid-decode.c b/edid-decode.c index 3df35ec6d07f..4abd79333d61 100644 --- a/edid-decode.c +++ b/edid-decode.c @@ -348,6 +348,10 @@ detailed_cvt_descriptor(unsigned char *x, int first) width = 8 * (((height * 15) / 9) / 8); ratio = "15:9"; break; + default: + width = 0; + ratio = "unknown"; + break; } if (x[1] & 0x03)
Fix the following warnings: edid-decode.c: In function ‘detailed_block’: edid-decode.c:394:2: warning: ‘width’ may be used uninitialized in this function [-Wmaybe-uninitialized] edid-decode.c:394:2: warning: ‘ratio’ may be used uninitialized in this function [-Wmaybe-uninitialized] Signed-off-by: Baruch Siach <baruch@tkos.co.il> --- edid-decode.c | 4 ++++ 1 file changed, 4 insertions(+)