Warn on use of static objects in ICU4C library code (-Wglobal-constructors)

Description

Add the clang compiler option -Wglobal-constructors to the build of ICU4C library code. Generates warnings on the use of global or static objects with constructors.

Do not add the warning to tools or tests, where static objects are ok.

Assignee

Steven R. Loomis

Reporter

Andy Heninger

Components

Labels

None

Reviewer

Steven R. Loomis

Priority

medium

Time Needed

Hours

Fix versions

Configure