Skip to content

ML: fix GCC diagnostic pragma

James Willenbring requested to merge ibaned:ml-diagnostic-typo into develop

Created by: ibaned

@trilinos/ml

Description

With GCC 6.3.0 I get a warning stating that '-pedantic' is not an option that controls warnings. Changing this to '-Wpedantic' silences the warning

Motivation and Context

Trilinos should ideally build without warnings on relevant compilers, and the pragma changed is specifically intended to silence a warning so it is especially problematic if it instead emits one

How Has This Been Tested?

A quick spot check was done with an Albany-supporting build of Trilinos. The checkin script will provide more thorough testing.

Checklist

  • My code follows the code style of the affected package(s).
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the code contribution guidelines for this project.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • No new compiler warnings were introduced.
  • These changes break backwards compatibility.

Merge request reports