This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
[Build Error] return type defaults to 'int'
- From: Zhihua Che <zhihua dot che at gmail dot com>
- To: gdb at sourceware dot org
- Date: Sun, 25 Mar 2012 20:16:37 +0800
- Subject: [Build Error] return type defaults to 'int'
Hi, everyone
I'm building gdb using git repository and maybe find a bug.
After configure, several .c files are generated under <gdb-build>/gdb,
such as c-exp.c cp-name-parser.c, but they are all not complying with
c grammar. Precisely, the functions in them miss a return value, like
the below
main() { return 0;}
my code version is c338d4bceb084a629b479e1ac36ab2b42737e1c2.