forked from OSchip/llvm-project
[sanitizer] Fix global constructor warning in sanitizer; patch by Samuel F Antao
llvm-svn: 217904
This commit is contained in:
parent
bd7c7b5551
commit
9fa2fc8357
|
@ -400,7 +400,7 @@ namespace __sanitizer {
|
|||
unsigned struct_sioc_vif_req_sz = sizeof(struct sioc_vif_req);
|
||||
#endif
|
||||
|
||||
unsigned IOCTL_NOT_PRESENT = 0;
|
||||
const unsigned IOCTL_NOT_PRESENT = 0;
|
||||
|
||||
unsigned IOCTL_FIOASYNC = FIOASYNC;
|
||||
unsigned IOCTL_FIOCLEX = FIOCLEX;
|
||||
|
|
|
@ -861,7 +861,7 @@ struct __sanitizer_obstack {
|
|||
|
||||
// A special value to mark ioctls that are not present on the target platform,
|
||||
// when it can not be determined without including any system headers.
|
||||
extern unsigned IOCTL_NOT_PRESENT;
|
||||
extern const unsigned IOCTL_NOT_PRESENT;
|
||||
|
||||
extern unsigned IOCTL_FIOASYNC;
|
||||
extern unsigned IOCTL_FIOCLEX;
|
||||
|
|
Loading…
Reference in New Issue