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

    Details

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

        Attachments

          Activity

            People

            • Assignee:
              asitals Andrejs Sitals
              Reporter:
              andris Andris Mednis
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: