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
    • 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

        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