[omniORB] clang compiler warning in omniidl generated code

Peter Klotz Peter.Klotz at ith-icoserve.com
Thu Apr 26 15:03:18 BST 2018


Hi

After a recent switch to clang we started getting this warning:

--------------------
IdlTypes.cpp:13:20: warning: unused variable '_0RL_library_version' [-Wunused-variable]
static const char* _0RL_library_version = omniORB_4_2;
                   ^
1 warning generated.
--------------------

A simple omniidl patch silenced the warning but the question came up what the variable is for.
The code seems fine without. It is not referenced or checked anywhere.
What purpose does it serve?

Regards, Peter.


More information about the omniORB-list mailing list