Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
"used only once" warnings with singleton classes #45
I'm trying to create a singleton class which does its initialization in BEGIN block, i.e.,
Using this in main program is simple but the instance is available through get_instance().
However, if the dependency package's pc-file does not contain en entry for 'url' for example, a warning is issued
This warning does not appear if the first call to get_instance is from the main program. Furthermore, I haven't found a way to suppress the warnings.