intel / intel/gmmlib

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

Open
#134 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
197
Forks
100
PR merge metrics
No merged PRs in 30d

Description

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)
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.