Hi,
recently, using -Werror,-Wunused-but-set-variable option makes compile error.
at least vesagtf.c needs fix but some (many?) other codes need do so.
Index: vesagtf.c
===================================================================
RCS file: /cvs/src/sys/dev/videomode/vesagtf.c,v
retrieving revision 1.3
diff -u -p -u -p -r1.3 vesagtf.c
--- vesagtf.c 8 Sep 2017 05:36:53 -0000 1.3
+++ vesagtf.c 19 Dec 2021 11:52:56 -0000
@@ -221,12 +221,16 @@ vesagtf_mode_params(unsigned h_pixels, u
unsigned interlace;
uint64_t h_period_est;
unsigned vsync_plus_bp;
+#ifdef GTFDEBUG
unsigned v_back_porch;
+#endif
unsigned total_v_lines;
uint64_t v_field_est;
uint64_t h_period;
+#ifdef GTFDEBUG
unsigned v_field_rate;
unsigned v_frame_rate;
+#endif
unsigned left_margin;
unsigned right_margin;
unsigned total_active_pixels;
@@ -367,9 +371,11 @@ vesagtf_mode_params(unsigned h_pixels, u
* XXX is "[V SYNC RND]" a typo? should be [V SYNC RQD]?
*/
+#ifdef GTFDEBUG
v_back_porch = vsync_plus_bp - params->vsync_rqd;
print_value(9, "[V BACK PORCH]", v_back_porch);
+#endif
/* 10. Find the total number of lines in Vertical field period:
@@ -415,6 +421,7 @@ vesagtf_mode_params(unsigned h_pixels, u
print_value(12, "[H PERIOD(ps)]", h_period);
+#ifdef GTFDEBUG
/* 13. Find the actual Vertical field frequency:
*
* [V FIELD RATE] = 1 / [H PERIOD] / [TOTAL V LINES] * 1000000
@@ -442,6 +449,7 @@ vesagtf_mode_params(unsigned h_pixels, u
v_field_rate / 2 : v_field_rate;
print_value(14, "[V FRAME RATE]", v_frame_rate);
+#endif
/* 15. Find number of pixels in left margin:
ok?
--
SASANO Takayoshi (JG1UAA) <[email protected]>