[ZBX-15296] C++ reserved word 'operator' is used as element name in structure Created: 2018 Dec 10 Updated: 2024 Apr 10 Resolved: 2018 Dec 13 |
|
Status: | Closed |
Project: | ZABBIX BUGS AND ISSUES |
Component/s: | Installation (I) |
Affects Version/s: | 4.0.2, 4.2.0alpha1 |
Fix Version/s: | 4.0.3rc1, 4.2.0alpha2, 4.2 (plan) |
Type: | Problem report | Priority: | Trivial |
Reporter: | Andris Mednis | Assignee: | Andrejs Sitals (Inactive) |
Resolution: | Fixed | Votes: | 0 |
Labels: | codequality | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
GNU/Linux |
Team: | Team A |
Team: | Team A |
Sprint: | Sprint 47, Dec 2018 |
Story Points: | 0.125 |
Description |
Structure 'zbx_dc_maintenance_tag_t' element name 'operator' is a reserved word in C++. It breaks compilation with C++: In file included from dbconfig.c:37: dbconfig.h:657:24: error: expected type-specifier before ‘;’ token unsigned char operator; ^ It could be fixed by renaming 'operator' (in 5 files) to some other name (.e.g. 'op'). |
Comments |
Comment by Andrejs Sitals (Inactive) [ 2018 Dec 11 ] |
Fixed in development branch svn://svn.zabbix.com/branches/dev/ZBX-15296.
|
Comment by Andrejs Sitals (Inactive) [ 2018 Dec 12 ] |
Available in versions: |