[Bug 271425] x11-toolkits/open-motif: fix build with clang 16

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 14 May 2023 19:36:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=271425

            Bug ID: 271425
           Summary: x11-toolkits/open-motif: fix build with clang 16
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: cy@FreeBSD.org
          Reporter: dim@FreeBSD.org
             Flags: maintainer-feedback?(cy@FreeBSD.org)
          Assignee: cy@FreeBSD.org

Clang 16 has a new error about incompatible function types, which shows
up when building x11-toolkits/open-motif:

  WmError.c:134:24: error: incompatible function pointer types passing 'void
(char *)' to parameter of type 'void (*)(String) __attribute__((noreturn))'
(aka 'void (*)(char *) __attribute__((noreturn))')
[-Wincompatible-function-pointer-types]
      XtSetErrorHandler (WmXtErrorHandler);
                         ^~~~~~~~~~~~~~~~
  /usr/local/include/X11/Intrinsic.h:1776:1: note: passing argument to
parameter here
  );
  ^

In this case the declaration of the callback function for
XtSetErrorHandler() shoud have a noreturn attribute, specifically using
the _X_NORETURN macro.

-- 
You are receiving this mail because:
You are the assignee for the bug.