Talk:Simple database: Difference between revisions
Content added Content deleted
(Clarify latest entry, please) |
(→The C code is bugged: new section) |
||
Line 31: | Line 31: | ||
Personally I would like the phrase to linger long after home computers stop using rotating disk. --[[User:Paddy3118|Paddy3118]] 20:50, 6 July 2012 (UTC) |
Personally I would like the phrase to linger long after home computers stop using rotating disk. --[[User:Paddy3118|Paddy3118]] 20:50, 6 July 2012 (UTC) |
||
== The C code is bugged == |
|||
The C code is bugged |
|||
Compilation with GCC version 4.8.1 (Ubuntu/Linaro 4.8.1-10ubuntu9): |
|||
'''gcc simple-database.c -o simple-database''' |
|||
simple-database.c:188:12: error: conflicting types for ‘by_date’ |
|||
static int by_date (pdb_t *p1, pdb_t *p2) { |
|||
^ |
|||
simple-database.c:31:13: note: previous declaration of ‘by_date’ was here |
|||
static sort by_date; |
|||
^ |
|||
simple-database.c:31:13: warning: ‘by_date’ used but never defined [enabled by default] |
|||
Compilation with clang version 3.2-7ubuntu1 (tags/RELEASE_32/final) (based on LLVM 3.2) give the same result: |
|||
'''clang simple-database.c -o simple-database''' |
|||
simple-database.c:188:12: error: conflicting types for 'by_date' |
|||
static int by_date (pdb_t *p1, pdb_t *p2) { |
|||
^ |
|||
simple-database.c:31:13: note: previous declaration is here |
|||
static sort by_date; |
|||
^ |
|||
1 error generated. |