Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-21046

C vs C++: Semantic issues in code from system macros

    XMLWordPrintable

Details

    • Linux/X11

    Description

      I get the warning 'use of old-style cast - note: expanded from macro FD_SET' in this code:

      // main.c
      #include <sys/select.h>
      
      int main()
      {
          fd_set x;
          FD_SET(0, &x); // use of old-style cast (3 times)
      }
      

      Attachments

        1. macro.pro
          0.1 kB
        2. macro.png
          macro.png
          114 kB
        3. macro.cpp
          0.1 kB

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              kosjar Nikolai Kosjar
              tguen tguen
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes