Skip to content

Fix the code causing -Wpragma-pack-suspicious-include warning #134

@rosetta-jpn

Description

@rosetta-jpn

When gmmlib is compiled with media-driver, the compilar complians the code because of -Wpragma-pack-suspicious-include .
There are a couple of headers code that causes the compiler warning. For example,

gmmlib/Source/GmmLib/inc/External/Common/GmmResourceInfoExt.h:195:14: error: non-default #pragma pack value changes the alignment of struct or union members in the included file [-Werror,-Wpragma-pack-s
uspicious-include]
  195 |     #include "External/Linux/GmmResourceInfoLinExt.h"
      |              ^
gmmlib/Source/GmmLib/inc/External/Common/GmmResourceInfoExt.h:39:9: note: previous '#pragma pack' directive that modifies alignment is here
   39 | #pragma pack(push, 8)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions