Turn on -Wold-style-cast and fix the errors.
A couple of dodgy cases where we cast away const, but otherwise pretty boring. Change-Id: Ibc39ebd525377792b5911464be842121c20f03b9
This commit is contained in:
@@ -47,7 +47,12 @@ struct __sfileext {
|
||||
bool _stdio_handles_locking; /* __fsetlocking support */
|
||||
};
|
||||
|
||||
#if defined(__cplusplus)
|
||||
#define _EXT(fp) reinterpret_cast<__sfileext*>((fp)->_ext._base)
|
||||
#else
|
||||
#define _EXT(fp) ((struct __sfileext *)((fp)->_ext._base))
|
||||
#endif
|
||||
|
||||
#define _UB(fp) _EXT(fp)->_ub
|
||||
#define _FLOCK(fp) _EXT(fp)->_lock
|
||||
|
||||
|
Reference in New Issue
Block a user