mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-06 22:15:31 +00:00
ICU-21784 suppress -Wunused-function warning in unistr.cpp
This commit adds an ignore of the unused function uprv_UnicodeStringDummy.
This commit is contained in:
parent
f79f03dad5
commit
55a51fa9bd
1 changed files with 5 additions and 0 deletions
|
@ -1977,7 +1977,12 @@ The vector deleting destructor is already a part of UObject,
|
|||
but defining it here makes sure that it is included with this object file.
|
||||
This makes sure that static library dependencies are kept to a minimum.
|
||||
*/
|
||||
#if defined(__clang__) || U_GCC_MAJOR_MINOR >= 1100
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||
static void uprv_UnicodeStringDummy(void) {
|
||||
delete [] (new UnicodeString[2]);
|
||||
}
|
||||
#pragma GCC diagnostic pop
|
||||
#endif
|
||||
#endif
|
||||
|
|
Loading…
Add table
Reference in a new issue