This repository has been archived by the owner on Jul 8, 2022. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Attribute: Don't treat an integer as an char* (#403)
Currently the compiler outputs attrgetsetprop.cpp: In member function ‘void Tango::Attribute::get_properties(Tango::AttributeConfig_3&)’: attrgetsetprop.cpp:200:91: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] conf.event_prop.per_event.period = CORBA::string_dup((const char *)(DEFAULT_EVENT_PERIOD)); and that is justified as DEFAULT_EVENT_PERIOD is an integer. Using the plain output operator into the stream is the preferred way.
- Loading branch information