Skip to content

Commit

Permalink
ICU-22716 remove warning pragma
Browse files Browse the repository at this point in the history
  • Loading branch information
FrankYFTang committed Sep 25, 2024
1 parent 9e89648 commit e6b0be8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions icu4c/source/test/cintltst/utf16tst.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,10 +397,6 @@ static void TestNextPrevChar(void){

}

#if U_GCC_MAJOR_MINOR >= 406
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
/* keep this in sync with utf8tst.c's TestNulTerminated() */
static void TestNulTerminated(void) {
static const UChar input[]={
Expand Down Expand Up @@ -481,9 +477,6 @@ static void TestNulTerminated(void) {
} while(++j<i);
} while(c!=0);
}
#if U_GCC_MAJOR_MINOR >= 406
#pragma GCC diagnostic pop
#endif

static void TestFwdBack(void){
static UChar input[]={0x0061, 0xd800, 0xdc00, 0xdbff, 0xdfff, 0x0062, 0xd841, 0xd7ff, 0xd841, 0xdc41, 0xdc00, 0x0000};
Expand Down
7 changes: 0 additions & 7 deletions icu4c/source/test/cintltst/utf8tst.c
Original file line number Diff line number Diff line change
Expand Up @@ -449,10 +449,6 @@ static void TestNextPrevChar(void) {
}
}

#if U_GCC_MAJOR_MINOR >= 406
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Warray-bounds"
#endif
/* keep this in sync with utf16tst.c's TestNulTerminated() */
static void TestNulTerminated(void) {
static const uint8_t input[]={
Expand Down Expand Up @@ -547,9 +543,6 @@ static void TestNulTerminated(void) {
} while(++j<i);
} while(c!=0);
}
#if U_GCC_MAJOR_MINOR >= 406
#pragma GCC diagnostic pop
#endif

static void TestNextPrevNonCharacters(void) {
/* test non-characters */
Expand Down

0 comments on commit e6b0be8

Please sign in to comment.