Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: CVS commit: syssrc/sys/arch/bebox/stand/boot
In article <200204081630.BAA17891%yayoi.hiru.aoba.yokohama.jp@localhost>
sakamoto%splhack.org@localhost wrote:
> tsutsui%ceres.dti.ne.jp@localhost wrote:
> > Isn't it better to add "CFLAGS+= -Wno-main" in Makefile?
>
> Which should I use "void main" + "CFLAGS+=-Wno-main" or
> "int main {... /* NOTREACHED */ return 0;}" ?
I think if the caller of main() doesn't require a return value,
void main() with -Wno-main is better.
---
Izumi Tsutsui
tsutsui%ceres.dti.ne.jp@localhost
Home |
Main Index |
Thread Index |
Old Index