Skip to content

remove gsl to make status.h independent from gsl#17402

Merged
jslhcl merged 14 commits intomainfrom
leca/removeGSL
Sep 14, 2023
Merged

remove gsl to make status.h independent from gsl#17402
jslhcl merged 14 commits intomainfrom
leca/removeGSL

Conversation

@jslhcl
Copy link
Contributor

@jslhcl jslhcl commented Sep 3, 2023

Description

Make status.h independent from gsl.

Motivation and Context

In the coming new feature external EP API (see the prototype #16718), we need to expose stream in the public header, however, stream is dependent on status.h which is dependent on gsl. We are seeking a way to decouple stream from gsl.

From Changming's comment offline, prefast is disabled so all GSL_SUPPRESS are not taking any effect now. He will handle the warnings when enable prefast in the future

@jslhcl jslhcl changed the title [DONT REVIEW] remove gsl to show the suppressed warning remove gsl to show the suppressed warning Sep 14, 2023
@jslhcl jslhcl changed the title remove gsl to show the suppressed warning remove gsl to make status.h independent from gsl Sep 14, 2023
@jslhcl jslhcl marked this pull request as ready for review September 14, 2023 04:47
@jslhcl jslhcl merged commit 32f5658 into main Sep 14, 2023
@jslhcl jslhcl deleted the leca/removeGSL branch September 14, 2023 04:47
kleiti pushed a commit to kleiti/onnxruntime that referenced this pull request Mar 22, 2024
### Description
<!-- Describe your changes. -->
Make status.h independent from gsl.


### Motivation and Context
<!-- - Why is this change required? What problem does it solve?
- If it fixes an open issue, please link to the issue here. -->
In the coming new feature external EP API (see the prototype
microsoft#16718), we need to expose
stream in the public header, however, stream is dependent on status.h
which is dependent on gsl. We are seeking a way to decouple stream from
gsl.

From Changming's comment offline, prefast is disabled so all
GSL_SUPPRESS are not taking any effect now. He will handle the warnings
when enable prefast in the future
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.

3 participants