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

Suppress C4459 warning in custom_op_lite.h #749

Closed
wants to merge 1 commit into from

Conversation

skyline75489
Copy link
Collaborator

Seems to a false positive. I found no api in global namespace.

@skyline75489 skyline75489 requested a review from a team as a code owner June 20, 2024 09:07
@@ -11,6 +11,9 @@
#include "ort_c_to_cpp.h"
#include "onnxruntime_f16.h"

#pragma warning(push)
#pragma warning(disable : 4459) // declaration of 'api' hides global declaration
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cannot disable the warning, which can be detected some security check tools, and it eventually become a server security issue in some dashboard.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK I'll see if there's other way to fix it

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

Successfully merging this pull request may close these issues.

None yet

2 participants