Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • GROMACS GROMACS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
    • Locked files
  • Issues 317
    • Issues 317
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 101
    • Merge requests 101
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GROMACS
  • GROMACSGROMACS
  • Issues
  • #2073
Closed
Open
Issue created Nov 13, 2016 by Paul Bauer@acmnpvMaintainer

cmake fails with CMAKE_CXX_FLAGS="-Wall -Werror" - Redmine #2073

Using -Wall together with -Werror makes cmake fail:

cmake -DCMAKE_CXX_FLAGS="-Wall -Werror" ..
...
-- Performing Test CXX11_SUPPORTED - Failed
CMake Error at cmake/gmxTestCXX11.cmake:113 (message):
  This version of GROMACS requires a C++11 compiler.  Please use a newer
  compiler or use the GROMACS 5.1.x release.  See the installation guide for
  details.
Call Stack (most recent call first):
  CMakeLists.txt:164 (gmx_test_cxx11)


-- Configuring incomplete, errors occurred!

due to

build/CMakeFiles/CMakeTmp/src.cxx:45:11: error: unused variable ‘x’ [-Werror=unused-variable]
   double *x = nullptr;
           ^
cc1plus: all warnings being treated as errors

(from redmine: issue id 2073, created on 2016-11-13 by junghans, closed on 2017-01-20)

  • Changesets:
    • Revision 31f0c056 by Aleksei Iupinov on 2017-01-05T14:33:29Z:
Fix compilation with CMAKE_CXX_FLAGS="-Wall -Werror"

Refs #2073

Change-Id: I9223b13e8abd251d56378052ace4fb4e9169a2aa
Assignee
Assign to
Time tracking