[llvm-bugs] [Bug 41329] New: Feature request: Add pragma diagnostic option to ignore warning only the next time
via llvm-bugs
llvm-bugs at lists.llvm.org
Mon Apr 1 00:58:23 PDT 2019
https://bugs.llvm.org/show_bug.cgi?id=41329
Bug ID: 41329
Summary: Feature request: Add pragma diagnostic option to
ignore warning only the next time
Product: clang
Version: unspecified
Hardware: PC
OS: All
Status: NEW
Severity: enhancement
Priority: P
Component: Frontend
Assignee: unassignedclangbugs at nondot.org
Reporter: ki.stfu at gmail.com
CC: llvm-bugs at lists.llvm.org, neeilans at live.com,
richard-llvm at metafoo.co.uk
Specifically, I'm trying to find an elegant way to avoid Wpramga-pack warnings
in Microsoft headers:
```pshpack1.hpp
#pragma pack(push, 1)
```
```poppack.hpp
#pragma pack(pop)
```
Right now, if we use these headers
```
#include <pshpack1.h>
typedef struct
{
BYTE m_linkType;
BYTE m_flags;
mdMemberRef m_entryPoint
} COR_NATIVE_LINK;
#include <poppack.h>
```
we always get the warning
```
warning: the current #pragma pack aligment value is modified in the included
file
```
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190401/058d1a3f/attachment.html>
More information about the llvm-bugs
mailing list