]> git.ipfire.org Git - thirdparty/asterisk.git/commit
loader: Add volatile to resource_being_loaded.
authorCorey Farrell <git@cfware.com>
Sun, 24 Dec 2017 04:51:13 +0000 (23:51 -0500)
committerCorey Farrell <git@cfware.com>
Sun, 24 Dec 2017 05:34:58 +0000 (00:34 -0500)
commit92fb393cab7fbd164e299601e94909ba95a0116b
tree238199dcd761d3c81da9d91e46dc7cf06a489837
parent53799318bc040a2082904df86d42ab08790b47ec
loader: Add volatile to resource_being_loaded.

Some compiler optimizers seem to assume that dlopen will not use
__attribute__((constructor)) functions to call back to the program.
This was causing resource_being_loaded to be optimized away completely.

ASTERISK-27531 #close
Tested By: abelbeck

Change-Id: If17a3b889e06811a0e7119f0539d052494d6ece9
main/loader.c