RetroBSD / retrobsd

Main RetroBSD Operating System
BSD 3-Clause "New" or "Revised" License
344 stars 55 forks source link

insert definitions of INT in some functions #76

Closed ghost closed 7 years ago

ghost commented 7 years ago

While compiling on clean lubuntu 16.04.1 lts (Virtualbox) as described in http://retrobsd.org/wiki/doku.php/doc/install some errors occured:

.../retrobsd/src/share/zoneinfo/zdump.c : zdump.c:26:1: error: type of ‘v’ defaults to ‘int’ [-Werror=implicit-int] show(zone, t, v) ^ cc1: all warnings being treated as errors ///// numerous, but compiler stops on the first

.../retrobsd/tools/kconfig$ ls mkioconf.c :+1 mkioconf.c: In function ‘wnum’: mkioconf.c:58:14: error: type of ‘num’ defaults to ‘int’ [-Werror=implicit-int] static char *wnum(num) ^ cc1: all warnings being treated as errors

So, kconfig and zdump were not created/ This commit difines the types of some variables in "visible" form: void function(var) => void function (int var)

ghost commented 7 years ago

Also .../retrobsd/src/share/zoneinfo/zic.c