tensor-filter-common: unnecessary usage of volatile
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 27 Oct 2021 14:04:49 +0000 (23:04 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Thu, 28 Oct 2021 08:09:44 +0000 (17:09 +0900)
commitc263f96e195fef470091d7541c7dbb06f7bc26c4
tree5dc9a3b024633294e6b5688f34ee17d2a2adc949
parent6bb86738fa82a769f939ff014d70d89d34d8edbc
tensor-filter-common: unnecessary usage of volatile

GLib-Once (g_once_init_enter/leave) have already taken
care of concurrency.
Its users do not need to worry about cache coherency or
concurrency issues for the initialization.

Actually, as #3440 is showing, the volatile keyword
is neglected by g_once_init_enter function, making
the usage of volatile meaningless anyway.

Remove volatile keyword and mitigate the first
compiler warning-error of #3440

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
gst/nnstreamer/tensor_filter/tensor_filter_common.c