<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/82009>82009</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            18.1.0rc2 [clang]: compile time warnings
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            clang
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          kloczek
      </td>
    </tr>
</table>

<pre>
    Build of only lclang subproject from dist tar ball. Compilation done using gcc 14.x from Fedora rawhide.
First just stats:
```console
[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](https://github.com/llvm/llvm-project/files/14313657/clang-18.1.0rc2.warnings.txt)

Additionally cmake warning
```console
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)
```
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzsVktv4zYQ_jX0ZUBBoiU_Dj449ho97LYBtoCPAUWOJG4oUstHHvvrC1K2k81hgaLopSggJNZw-PGbmW844t6r3iDuSHNHmuOCxzBYt3vUVvzAx0Vr5evuLiotwXZgjX4FLTQ3PfjYTs5-QxGgc3YEqXyAwB20XOsCDnaclOZBWQPSGoTolemhFwKquniZ95xQWsfB8edBSSxIeSTl_qScD_At-gA-8ODJcj8vkFU5P8IabzVerM1dyGwfLanLCZ2n37jAR_h6_-nwlTRHwmpw09jmIGjLIfMv_IQCKP0eFQZgZPmJsFUFZH2A3uEElAJpDvm5o-ds9yiBsLUn7FQQtp_XCDulZ3kHyZ5tx4uNredt1oX8Ixr1Hah4M1Lj5hgAANYlA3oe-WuLNBplVFBcqx8o31zqugR65iE41caA_m0F2Abo2QenTG8nap_Qddo-k-XxvU-VdmttBfXqB1LNXY-OhoGbnx2rBNY5RGqsGZBP1Lap0O9coAF6ltz0WpmeOuzQoRH43iOFE030KOkTd4q3-qflRAZfguMfiju__oYOQXngIXAxjGgCPKswQN4hAkrwQaJzQJq7XE9abYqqKJ1gxTN3RpneF-El5GpshhCmrKNcmF6FIbaFsCNhJ62frv_oRc-EnTqlMdWzqpfVctWsCTv98hS2vUSR_-6lVEn4XOtXECN_RLh4_0rIV5flHryNTuCD5AEfcLJieEjt8iAGbnrUtgePAdoYgLDmzag8jMr72zGHL-nkI04OxdyI5_kI4GnnKXqXIlftqk7xJZ5vCfliZZxzkGHurVbitZidlvsVELbJLw9TXkkZuPYpwJ8Dwh-fj9DiwJ-UddBZB7MjHL7cl1VVw7PSGloEh6N9QjlfCBy6GKJDeELnlTVXQNtBplG8T_N8TmZBM7hKfDdrwrYwchO5BnyZNFfGQxh4gPCBlk-4XOsr3BUEuEOQl7yhBG7kDMCvQfjBRi0T_VSJYDNsvh2jkXjr6nTHqE6J5O8CDehG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