Skip to content

18.1.0rc2 [clang]: compile time warnings #82009

@kloczek

Description

@kloczek

Build of only lclang subproject from dist tar ball. Compilation done using gcc 14.x from Fedora rawhide.
First just stats:

[tkloczko@pers-jacek SPECS]$ rpmbuild -ba clang.spec --quiet 2>&1 | grep -- \\[-W | sed 's/.*\[//; s/\]//' | sort | uniq -c | sort -nr
    702 -Wmaybe-uninitialized
    440 -Wattributes
     28 -Wstringop-overflow=
     21 -Walloc-size-larger-than=
     18 -Wfree-nonheap-object
      5 -Wdangling-reference
      2 -Wunused-variable
      1 -Wextra

Here is attachment with extracted stderr clang-18.1.0rc2.warnings.txt

Additionally cmake warning

warning: source_date_epoch_from_changelog set but %changelog is missing
CMake Deprecation Warning at /usr/lib64/cmake/llvm/Modules/CMakePolicy.cmake:6 (cmake_policy):
  The OLD behavior for policy CMP0114 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)


CMake Deprecation Warning at /usr/lib64/cmake/llvm/Modules/CMakePolicy.cmake:11 (cmake_policy):
  The OLD behavior for policy CMP0116 will be removed from a future version
  of CMake.

  The cmake-policies(7) manual explains that the OLD behaviors of all
  policies are deprecated and that a policy should be set to OLD only under
  specific short-term circumstances.  Projects should be ported to the NEW
  behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
  CMakeLists.txt:6 (include)

Metadata

Metadata

Assignees

No one assigned

    Labels

    build-problemclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions