[Date Prev][Date Next]
Invalid assigment to cast in back-bdb (ITS#2541)
Full_Name: Hallvard B Furuseth
Submission from: (NULL) (184.108.40.206)
Submitted by: hallvard
ISO C forbids use of cast expressions as lvalues: that's a gcc extension.
However, back-bdb/delete.c does `BEI(e) = <value>;' at lines 491 and 495,
with '#define BEI(e) ((EntryInfo *) ((e)->e_private))' from back-bdb.h.
I suggest to use `#define SET_BEI(e, val) ((e)->e_private = (val))'.