[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[RP] [PATCH 6/6] Kill gcc uninitialized warning
From: |
Mathieu OTHACEHE |
Subject: |
[RP] [PATCH 6/6] Kill gcc uninitialized warning |
Date: |
Tue, 29 Nov 2016 20:00:54 +0100 |
It is useless to initialize screen_count, but it prevents a gcc warning.
---
src/screen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/screen.c b/src/screen.c
index ddc03cb..7593f49 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -257,7 +257,7 @@ void
init_screens (void)
{
int i;
- int screen_count;
+ int screen_count = 0;
int *rr_outputs = NULL;
rp_screen *screen;
--
2.10.2
- [RP] [PATCH v2 0/6] Improve xrandr support, Mathieu OTHACEHE, 2016/11/29
- [RP] [PATCH 1/6] Assign a number to each screen using a numset, Mathieu OTHACEHE, 2016/11/29
- [RP] [PATCH 2/6] Fix fdump and sselect, Mathieu OTHACEHE, 2016/11/29
- [RP] [PATCH 5/6] Add height dimension to screen sorting, Mathieu OTHACEHE, 2016/11/29
- [RP] [PATCH 4/6] Fix sfrestore, Mathieu OTHACEHE, 2016/11/29
- [RP] [PATCH 3/6] Fix sfdump, Mathieu OTHACEHE, 2016/11/29
- [RP] [PATCH 6/6] Kill gcc uninitialized warning,
Mathieu OTHACEHE <=