diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-04-13 07:55:47 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2004-04-13 07:55:47 +0000 |
commit | 588c932832f1e0ef48f771136a5757674713e522 (patch) | |
tree | 27e3a78dea99cb3acf9a1f01471f908e740e9c2d /ace/Global_Macros.h | |
parent | cb9e8c54c09f033e680495f4538a1a2fd2cfae03 (diff) | |
download | ATCD-588c932832f1e0ef48f771136a5757674713e522.tar.gz |
ChangeLogTag:Tue Apr 13 00:47:43 2004 Ossama Othman <ossama@dre.vanderbilt.edu>
Diffstat (limited to 'ace/Global_Macros.h')
-rw-r--r-- | ace/Global_Macros.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ace/Global_Macros.h b/ace/Global_Macros.h index 0e965d38402..c9649582919 100644 --- a/ace/Global_Macros.h +++ b/ace/Global_Macros.h @@ -719,17 +719,17 @@ _make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *gobbler) \ # define ACE_NEW_MALLOC_RETURN(POINTER,ALLOCATOR,CONSTRUCTOR,RET_VAL) \ do { POINTER = ALLOCATOR; \ if (POINTER == 0) { errno = ENOMEM; return RET_VAL;} \ - else { new (POINTER) CONSTRUCTOR; } \ + else { (void) new (POINTER) CONSTRUCTOR; } \ } while (0) # define ACE_NEW_MALLOC(POINTER,ALLOCATOR,CONSTRUCTOR) \ do { POINTER = ALLOCATOR; \ if (POINTER == 0) { errno = ENOMEM; return;} \ - else { new (POINTER) CONSTRUCTOR; } \ + else { (void) new (POINTER) CONSTRUCTOR; } \ } while (0) # define ACE_NEW_MALLOC_NORETURN(POINTER,ALLOCATOR,CONSTRUCTOR) \ do { POINTER = ALLOCATOR; \ if (POINTER == 0) { errno = ENOMEM;} \ - else { new (POINTER) CONSTRUCTOR; } \ + else { (void) new (POINTER) CONSTRUCTOR; } \ } while (0) /* ACE_Metrics */ @@ -738,26 +738,26 @@ _make_##SERVICE_CLASS (ACE_Service_Object_Exterminator *gobbler) \ do { POINTER = ALLOCATOR; \ if (POINTER == 0) { errno = ENOMEM; return RET_VAL;} \ else { for (u_int i = 0; i < COUNT; ++i) \ - {new (POINTER) CONSTRUCTOR; ++POINTER;} \ + {(void) new (POINTER) CONSTRUCTOR; ++POINTER;} \ POINTER -= COUNT;} \ } while (0) # define ACE_NEW_MALLOC_ARRAY(POINTER,ALLOCATOR,CONSTRUCTOR,COUNT) \ do { POINTER = ALLOCATOR; \ if (POINTER == 0) { errno = ENOMEM; return;} \ else { for (u_int i = 0; i < COUNT; ++i) \ - {new (POINTER) CONSTRUCTOR; ++POINTER;} \ + {(void) new (POINTER) CONSTRUCTOR; ++POINTER;} \ POINTER -= COUNT;} \ } while (0) #else /* ! defined ACE_LACKS_ARRAY_PLACEMENT_NEW */ # define ACE_NEW_MALLOC_ARRAY_RETURN(POINTER,ALLOCATOR,CONSTRUCTOR,COUNT,RET_VAL) \ do { POINTER = ALLOCATOR; \ if (POINTER == 0) { errno = ENOMEM; return RET_VAL;} \ - else { new (POINTER) CONSTRUCTOR [COUNT]; } \ + else { (void) new (POINTER) CONSTRUCTOR [COUNT]; } \ } while (0) # define ACE_NEW_MALLOC_ARRAY(POINTER,ALLOCATOR,CONSTRUCTOR,COUNT) \ do { POINTER = ALLOCATOR; \ if (POINTER == 0) { errno = ENOMEM; return;} \ - else { new (POINTER) CONSTRUCTOR [COUNT]; } \ + else { (void) new (POINTER) CONSTRUCTOR [COUNT]; } \ } while (0) #endif /* defined ACE_LACKS_ARRAY_PLACEMENT_NEW */ |