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

Unterminated #pragma pack(..)

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • Qt Creator 4.7.2, Qt Creator 4.8.0-beta1
    • C/C++/Obj-C++ Support
    • None
    • Ubuntu 18.04
      g++ (Ubuntu 7.3.0-27ubuntu1~18.04) 7.3.0
      Qt Creator 4.7.2, 4.7.1, not sure about older
    • Linux/X11

    Description

      I see such warning in one of my header (C++) files in Qt Editor

      #include <cstdint>
      #include <limits>
      #include <arpa/inet.h>
      #pragma pack(push, 1) <---- unterminated '#pramga pack(push,...) at end of file
      struct PackedStruct {
      };
      #pragma pack(pop)
      struct UnPackedStruct
      { ...... }
      ;

       

       So if I will move UnPackedStruct before pragma pack and pop is last line, warning rotes away.

      Including my plugins enabled screen shot

       

      Attachments

        1. Linux 18.04 pragma pack.png
          240 kB
          Robert J. Gebis
        2. screenshot-1.png
          86 kB
          Alexei Arkhangelsky
        3. image-2019-04-01-14-19-34-903.png
          40 kB
          Alexei Arkhangelsky
        4. image-2019-04-01-14-19-48-054.png
          40 kB
          Alexei Arkhangelsky
        5. example1.JPG
          52 kB
          Serg Artemyev
        6. image-2021-05-05-16-08-44-926.png
          10 kB
          Christophe Beugnet
        7. image-2021-05-05-16-09-11-530.png
          4 kB
          Christophe Beugnet
        8. image-2021-05-05-16-10-59-922.png
          4 kB
          Christophe Beugnet
        9. image-2021-05-05-16-11-08-163.png
          9 kB
          Christophe Beugnet
        10. image-2021-05-05-16-37-13-793.png
          19 kB
          Christophe Beugnet

        Issue Links

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

          Activity

            People

              kandeler Christian Kandeler
              oxoocoffee Robert J. Gebis
              Votes:
              5 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes