[Date Prev][Date Next] [Chronological] [Thread] [Top]

Invalid assigment to cast in back-bdb (ITS#2541)

Full_Name: Hallvard B Furuseth
Version: HEAD
Submission from: (NULL) (
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))'.