[Pkg-cmake-team] Bug#777542: ISO C forbids conversion of function pointer to object pointer type

Timo Röhling roehling at debian.org
Tue Oct 19 09:06:22 BST 2021


While the compiler error is no longer escalated, the pedantic-error
flag still influences the test result with CMake 3.21.3.

Test case:

   cmake_minimum_required(VERSION 3.0)
   project(test)
   include(CheckSymbolExists)
   check_symbol_exists(memalign malloc.h HAVE_MEMALIGN)

   $ cmake
   [...]
   -- Looking for memalign
   -- Looking for memalign - found
   -- Configuring done
   -- Generating done

   $ CFLAGS="-pedantic-errors" cmake 
   [...]
   -- Looking for memalign
   -- Looking for memalign - not found
   -- Configuring done
   -- Generating done

-- 
⢀⣴⠾⠻⢶⣦⠀   ╭────────────────────────────────────────────────────╮
⣾⠁⢠⠒⠀⣿⡁   │ Timo Röhling                                       │
⢿⡄⠘⠷⠚⠋⠀   │ 9B03 EBB9 8300 DF97 C2B1  23BF CC8C 6BDD 1403 F4CA │
⠈⠳⣄⠀⠀⠀⠀   ╰────────────────────────────────────────────────────╯
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-cmake-team/attachments/20211019/81ebd445/attachment.sig>


More information about the Pkg-cmake-team mailing list