Notice

The forum is in read only mode.

  • Page:
  • 1

TOPIC: New Warning on old code in C++B XE4

New Warning on old code in C++B XE4 6 years 10 months ago #2742

Below is a single line of code in a .cpp file. I am using VCL 32 bit platform in CB XE4. I am seeing the warning below for the first time which seems very odd. The code look correct and I am not sure what the compiler wants to see. Can you show the correct way to arrange the brackets.


MyBars MyNOBARS = { {NULL}, {0}, {0}, {0} };

[bcc32 Warning] myarray.cpp(25): W8061 Initialization is only partially bracketed

Thanks
Patrick
  • Page:
  • 1
Moderators: April Anne