Global variables - Used non-shared variable
Mostrar comentarios más antiguos
Hello,
I would like to get more information on a polyspace warning that occurs in every source file (.c file) which has static global variables defined in it. The warning occurs for each defined global variable. The warning is as follows:
"Operations on variable <global_variable_name> do not interfere with each other."
The source file contains different functions that would be called from a different translation unit, and these functions can both read from and write to the global variables. I do not see any issue in defining them as static global variables inside the source file.
What is the reason for this warning and is something expected from my side as a software developer to fix this warning?
Note: This code is not intended for multitasking
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Generate Report en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!