clang compiler warning in omniidl generated code

Peter Klotz via omniORB-list <[email protected]> Thu, 26 Apr 2018 16:03:18 +0200
Newsgroups gmane.comp.corba.omniorb.user
Message-ID <FDCF7296051FAA4B967818014FE88B23027B0C8806CB@hermes.ith-icoserve.com>
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.
_______________________________________________
omniORB-list mailing list
[email protected]
http://www.omniorb-support.com/mailman/listinfo/omniorb-list