Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown pragma codes in GCC #4599

Open
1 of 4 tasks
toms-visuality opened this issue Oct 6, 2024 · 0 comments
Open
1 of 4 tasks

Unknown pragma codes in GCC #4599

toms-visuality opened this issue Oct 6, 2024 · 0 comments

Comments

@toms-visuality
Copy link

toms-visuality commented Oct 6, 2024

Describe the bug

Warning is issued when compiling msquic on Linux, since GCC does not know pragmas: 4201, 4214

Affected OS

  • Windows
  • Linux
  • macOS
  • Other (specify below)

Additional OS information

Linux Ubuntu 24.04 LTS, kernel 6.8.0-39
gcc (Ubuntu 13.2.0-23ubuntu4) 13.2.0

MsQuic version

v2.2

Steps taken to reproduce bug

  1. Compile msquic
  2. Warnings keep repeating:
    ../msquic/msquic.h:28: warning: ignoring #pragma warning [-Wunknown-pragmas] 28 | #pragma warning(disable:4201) // nonstandard extension used: nameless struct/union | ../msquic/msquic.h:29: warning: ignoring #pragma warning [-Wunknown-pragmas] 29 | #pragma warning(disable:4214) // nonstandard extension used: bit field types other than int

Expected behavior

No warnings should be visible.

Actual outcome

Warnings repeat constantly.

Additional details

Possible fix could be (on msquic.h:28-29):

#ifdef _MSC_VER
    #pragma warning(disable:4201)  // nonstandard extension used: nameless struct/union
    #pragma warning(disable:4214)  // nonstandard extension used: bit field types other than int
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant