Skip to content

Unable to build SDL with -DCMAKE_BUILD_TYPE=Release on Ubuntu 20.04 #3644

@dboltovskyi

Description

@dboltovskyi

Bug Report

Unable to build SDL with -DCMAKE_BUILD_TYPE=Release for Ubuntu 20.04
However SDL in such configuration is built successfully on Ubuntu 18.04

Reproduction Steps
  1. git checkout develop
  2. cmake ../sdl_core -DCMAKE_BUILD_TYPE=Release
  3. make install
Expected Behavior

SDL is built successfully

Observed Behavior

SDL build fails with errors:

/home/developer/sdl/sdl_core/src/components/include/utils/semantic_version.h:49:20: error: ‘*((void*)(& signature)+10).utils::SemanticVersion::patch_version_’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
   49 |     patch_version_ = other.patch_version_;
OS & Version Information
Test Case, Sample Code, and / or Example App

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions