[omniORB] Patch: removed const_cast warnings
matejkenda@volja.net
matejkenda@volja.net
Thu Jan 9 13:36:00 2003
------=_,-KUsNdc/lYAa(2?5rdePkcufAgKXtQPsspI?WzTHURjDlkqO5Dsryocc=St
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 8bit
Hi,
I am making a switch from omniORB 3.0.5 to omniORB 4.0.0.
I have noticed that omniORB's include files make some warnings when -Wcast-qual
option is used (g++ 3.2 on Linux).
Please find attached a patch which removes warnings.
Best regards,
Matej
------=_,-KUsNdc/lYAa(2?5rdePkcufAgKXtQPsspI?WzTHURjDlkqO5Dsryocc=St
Content-Type: application/octet-stream; name="omniORB4_const_cast.diff"
Content-Disposition: attachment; filename="omniORB4_const_cast.diff"
Content-Transfer-Encoding: base64
ZGlmZiAtLXVuaWZpZWQgLWIgLUIgLi4vLi4vLi4vb21uaU9SQi00LjAuMC9pbmNsdWRlL29tbmlP
UkI0L2NhbGxEZXNjcmlwdG9yLmggaW5jbHVkZS9vbW5pT1JCNC9jYWxsRGVzY3JpcHRvci5oCi0t
LSAuLi8uLi8uLi9vbW5pT1JCLTQuMC4wL2luY2x1ZGUvb21uaU9SQjQvY2FsbERlc2NyaXB0b3Iu
aAkyMDAxLTExLTA2IDE2OjQxOjM1LjAwMDAwMDAwMCArMDEwMAorKysgaW5jbHVkZS9vbW5pT1JC
NC9jYWxsRGVzY3JpcHRvci5oCTIwMDMtMDEtMDkgMTE6NTI6MTMuMDAwMDAwMDAwICswMTAwCkBA
IC0yODAsNyArMjgwLDExIEBACiAJCSAgICAgc2l6ZV90IG9wbGVuLCBjb25zdCBjaGFyKiBhXzAs
CiAJCSAgICAgX0NPUkJBX0Jvb2xlYW4gdXBjYWxsPTApIDoKICAgICAgIG9tbmlDYWxsRGVzY3Jp
cHRvcihsY2ZuLCBvcCwgb3BsZW4sIDAsIDAsIDAsIHVwY2FsbCksCisjaWZkZWYgSEFTX0NwbHVz
cGx1c19jb25zdF9jYXN0CisgICAgICBhcm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