Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • O ogs
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 76
    • Issues 76
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 26
    • Merge requests 26
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Announcement: OGS Community Meeting 2022 in September

  • ogs
  • ogs
  • Merge requests
  • !3570

Enable compiler warnings for executables

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Lars Bilke requested to merge bilke/ogs:exe-warnings into master Apr 15, 2021
  • Overview 6
  • Commits 8
  • Pipelines 6
  • Changes 30

Some time ago we set the compiler warning level globally. Then we switched to target based setting of the warning level but I forgot to also set them on executables so in the meantime these warnings were suppressed.

Added CMake drop-in replacement for add_executable() -> ogs_add_executable() which sets the warning level appropriately.

Also fixed warnings which popped up.

  1. Feature description was added to the changelog
Edited Apr 15, 2021 by Lars Bilke
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: exe-warnings