Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
4.2.0
-
None
Description
HP aCC 6.15 issues a remark noting that basic_filebuf ctor calls the virtual member function setbuf(). The purpose of the remark is to warn that the usual virtual dispatch doesn't take place for virtual function calls from class ctors (i.e., the function defined the ctor's class is called). We should silence the remark by qualifying the call with the name of the class.
aCC -c -I$(TOPDIR)/include -I$(BUILDDIR)/include -AA +O2 +DD64 +w +W392 +W655 +W684 +W818 +W819 +W849 +W2193 +W2236 +W2261 +W2340 +W2401 +W2487 +W4227 +W4229 +W4231 +W4235 +W4237 +W4249 +W4255 +W4272 +W4284 +W4285 +W4286 +Z $(TOPDIR)/src/ti_filebuf.cpp
"$(TOPDIR)/include/fstream", line 112: remark #4282-D: virtual function is called from constructor/destructor
setbuf (0, _RWSTD_DEFAULT_BUFSIZE);
^