#197: missing main prototype while compiling with clang --------------------------+---------------------------------- Reporter: tfarina@… | Owner: stepan@… Type: defect | Status: new Priority: minor | Milestone: Component: coreboot | Keywords: Dependencies: | Patch Status: there is no patch --------------------------+---------------------------------- $ make HOSTCC nvramtool/cli/nvramtool.o HOSTCC nvramtool/cli/opts.o HOSTCC nvramtool/cmos_lowlevel.o HOSTCC nvramtool/cmos_ops.o HOSTCC nvramtool/common.o HOSTCC nvramtool/compute_ip_checksum.o HOSTCC nvramtool/hexdump.o HOSTCC nvramtool/input_file.o HOSTCC nvramtool/layout.o HOSTCC nvramtool/accessors/layout-common.o HOSTCC nvramtool/accessors/layout-text.o HOSTCC nvramtool/accessors/layout-bin.o HOSTCC nvramtool/lbtable.o HOSTCC nvramtool/reg_expr.o HOSTCC nvramtool/cbfs.o HOSTCC nvramtool/accessors/cmos-mem.o HOSTCC nvramtool/nvramtool (link) OPTION option_table.h GEN build.h CC romstage.inc src/mainboard/intel/cougar_canyon2/romstage.c:173:6: error: no previous prototype for function 'main' [-Werror,-Wmissing-prototypes] void main(FSP_INFO_HEADER *fsp_info_header) ^ 1 error generated. make: *** [build/mainboard/intel/cougar_canyon2/romstage.pre.inc] Error 1
$ clang --version clang version 3.4 (trunk 193323) Target: x86_64-unknown-linux-gnu Thread model: posix
$ uname -a Linux i3 3.2.0-57-generic #87-Ubuntu SMP Tue Nov 12 21:35:10 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
-- Ticket URL: https://tracker.coreboot.org/trac/coreboot/ticket/197 coreboot http://www.coreboot.org/