bug-libsigsegv
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #63788] -Wincompatible-function-pointer-types warning/error in conf


From: Sam James
Subject: [bug #63788] -Wincompatible-function-pointer-types warning/error in configure.ac with Clang 16
Date: Sat, 11 Feb 2023 00:04:56 -0500 (EST)

URL:
  <https://savannah.gnu.org/bugs/?63788>

                 Summary: -Wincompatible-function-pointer-types warning/error
in configure.ac with Clang 16
                 Project: libsigsegv
               Submitter: thesamesam
               Submitted: Sat 11 Feb 2023 05:04:54 AM UTC
                Category: None
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 11 Feb 2023 05:04:54 AM UTC By: Sam James <thesamesam>
Clang 16 will make -Wincompatible-function-pointer-types (and some other
warnings) an error by default.

Catching these is tricky so I currently diff the compiler warning/error output
before/after using relaxed vs strict options. For libsigsegv-2.14, this
yields:
```
-ignoreme: warning: incompatible function pointer types assigning to 'void
(*)(int, siginfo_t *, void *)' from 'void (*)(int, siginfo_t *, ucontext_t *)'
(aka 'void (*)(int, siginfo_t *, struct ucontext_t *)')
[-Wincompatible-function-pointer-types]
+ignoreme: error: incompatible function pointer types assigning to 'void
(*)(int, siginfo_t *, void *)' from 'void (*)(int, siginfo_t *, ucontext_t *)'
(aka 'void (*)(int, siginfo_t *, struct ucontext_t *)')
[-Werror,-Wincompatible-function-pointer-types]
 action.sa_sigaction = &sigsegv_handler;
                     ^ ~~~~~~~~~~~~~~~~
```

I've attached the full config.log. This occurred on x86_64-pc-linux-gnu with
Clang 16.0.0_rc2. Let me know if more information is required, thanks!






    _______________________________________________________
File Attachments:


-------------------------------------------------------
Date: Sat 11 Feb 2023 05:04:54 AM UTC  Name: config.log  Size: 154KiB   By:
thesamesam

<http://savannah.gnu.org/bugs/download.php?file_id=54346>

    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63788>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]