[Bug 286508] graphics/libdrm: ALIGN macro redefined

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 01 May 2025 17:44:52 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=286508

            Bug ID: 286508
           Summary: graphics/libdrm: ALIGN macro redefined
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: x11@FreeBSD.org
          Reporter: 2khramtsov@gmail.com
          Assignee: x11@FreeBSD.org
             Flags: maintainer-feedback?(x11@FreeBSD.org)

[...]
[ 50% 44/65] cc -Ilibdrm.so.2.123.0.p -I. -I.. -I../include/drm
-fvisibility=hidden -fdiagnostics-color=never -D_FILE_OFFSET_BITS=64 -Wall -Wi
nvalid-pch -std=c11 -include
/wrkdirs/usr/ports/graphics/libdrm/work/libdrm-2.4.123/_build/config.h -O2
-pipe -fPIE -fPIC -fstack-protector-st
rong -fno-strict-aliasing -fPIC -Wsign-compare -Werror=undef
-Werror=implicit-function-declaration -Wpointer-arith -Wwrite-strings
-Wstrict-pr
ototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wpacked
-Wswitch-enum -Wmissing-format-attribute -Wstrict-aliasing=2 -Winit-self
-Winline -Wshadow -Wdeclaration-after-statement -Wold-style-definition
-Wno-unused-parameter -Wno-attributes -Wno-long-long
-Wno-missing-field-initializers -MD -MQ libdrm.so.2.123.0.p/xf86drm.c.o -MF
libdrm.so.2.123.0.p/xf86drm.c.o.d -o libdrm.so.2.123.0.p/xf86drm.c.o -c
../xf86drm.c
In file included from ../xf86drm.c:81:
../util_math.h:32:9: warning: 'ALIGN' macro redefined [-Wmacro-redefined]
   32 | #define ALIGN(value, alignment)    __align_mask(value,
(__typeof__(value))((alignment) - 1))
      |         ^
/usr/include/machine/param.h:73:9: note: previous definition is here
   73 | #define ALIGN(p)                _ALIGN(p)
      |         ^
[...]

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