[sanitizer] Fix global constructor warning in sanitizer; patch by Samuel F Antao

llvm-svn: 217904
This commit is contained in:
Kostya Serebryany 2014-09-16 20:49:55 +00:00
parent bd7c7b5551
commit 9fa2fc8357
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;