Description:
I got the following error when compiling 4.1bk in FC4 (gcc4):
handler.h:483: warning: minimum/maximum operators are deprecated
item_sum.h: In member function ‘virtual void Item_sum_avg::fix_length_and_dec()’:
item_sum.h:283: warning: minimum/maximum operators are deprecated
item_sum.h: In member function ‘virtual void Item_sum_variance::fix_length_and_dec()’:
item_sum.h:342: warning: minimum/maximum operators are deprecated
opt_range.cc: In function ‘SEL_TREE* get_mm_parts(PARAM*, COND*, Field*, Item_func::Functype, Item*, Item_result)’:
opt_range.cc:986: error: expected ‘;’ before ‘tree’
opt_range.cc: In function ‘ha_rows check_quick_keys(PARAM*, uint, SEL_ARG*, char*, uint, char*, uint)’:
opt_range.cc:2305: warning: minimum/maximum operators are deprecated
make[4]: *** [opt_range.o] Error 1
make[4]: Leaving directory `/my/mysql-4.1/sql'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/my/mysql-4.1/sql'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/my/mysql-4.1/sql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/my/mysql-4.1'
make: *** [all] Error 2
jorge@laptop-/my/mysql-4.1/>
NOTE: 5.0bk compiled without problems!
How to repeat:
compile 4.1bk in FC4.