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

cmake: disable array-bounds check & treat warnings as errors for pyextobj and oneflow_internal & fix warnings #5838

Merged
merged 7 commits into from Aug 12, 2021

Conversation

PragmaTwice
Copy link
Contributor

@PragmaTwice PragmaTwice commented Aug 11, 2021

  • disable array-bounds check
  • treat warnings as errors for pyextobj and oneflow_internal
  • fix warnings
    • a null pointer dereference reported by gcc
    • some missing final to prevent missing dispatching in derived classes due to no virtual dtor
  • tested in gcc 11 and clang 12
  • check whether option is avaliable using check_cxx_compiler_flag

cmake/oneflow.cmake Outdated Show resolved Hide resolved
cmake/oneflow.cmake Outdated Show resolved Hide resolved
@oneflow-ci-bot oneflow-ci-bot self-requested a review August 12, 2021 09:28
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot August 12, 2021 10:24
@oneflow-ci-bot oneflow-ci-bot merged commit 19e7a50 into Oneflow-Inc:master Aug 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants