Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-15296

C++ reserved word 'operator' is used as element name in structure

XMLWordPrintable

    • Sprint 47, Dec 2018
    • 0.125

      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').

            asitals Andrejs Sitals (Inactive)
            andris Andris Mednis
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: