Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove shared data warning for purpose query only #984

Conversation

Linwood-F
Copy link
Contributor

This is one case (only) of the shared data not initialized warning, specifically when the Monitor::Monitor constructor is called with query purpose=QUERY. In that case, the deleted warning message cannot be avoided -- mem_ptr is initialized to null, then (after a second of code that cannot be executed when purpose==QUERY) is tested and this warning given.

It also appears to work properly, so I cannot actually see that the mem_ptr needs to be initialized for purpose==QUERY at that point, as all paths I have tested seem to work properly.

This pull does not address whether the other shared data not initialized error, the one that does not end with "some query functions", is correct or not; I did not research it.

connortechnology added a commit that referenced this pull request Aug 4, 2015
…ery-warning

Remove shared data warning for purpose query only
@connortechnology connortechnology merged commit a36bee3 into ZoneMinder:master Aug 4, 2015
@Linwood-F Linwood-F deleted the 507-shared-data-for-purpose-query-warning branch August 4, 2015 14:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants