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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Done
    • Affects Version/s: Qt Creator 4.7.0
    • Fix Version/s: Qt Creator 4.8.0-beta1
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None
    • Environment:
      Arch Linux / g++ 8.2.0
    • Platform/s:
      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.cpp
          0.1 kB
        2. macro.png
          macro.png
          114 kB
        3. macro.pro
          0.1 kB

          Issue Links

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

            Activity

              People

              Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              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