-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Description
% make build
mkdir -p bin
g++ -g -fmax-errors=2 -Wall -Werror -Wextra -Wno-unused-parameter lxroot.cpp -o bin/lxroot
lxroot.cpp: In static member function ‘static flags_t Syscall::st_to_ms(flags_t)’:
lxroot.cpp:731:42: error: comparison between ‘enum<unnamed>’ and ‘enum<unnamed>’ [-Werror=enum-compare]
731 | #define if_equal( a, b ) ( a == b ? b : 0 )
| ^
lxroot.cpp:735:7: note: in expansion of macro ‘if_equal’
735 | if_equal ( ST_RDONLY, MS_RDONLY )
| ^~~~~~~~
lxroot.cpp:731:42: error: comparison between types ‘<unnamed enum>’ and ‘<unnamed enum>’ [-Werror=sign-compare]
731 | #define if_equal( a, b ) ( a == b ? b : 0 )
| ^
lxroot.cpp:735:7: note: in expansion of macro ‘if_equal’
735 | if_equal ( ST_RDONLY, MS_RDONLY )
| ^~~~~~~~
compilation terminated due to -fmax-errors=2.
make: *** [Makefile:36: bin/lxroot] Error 1
% g++ --version
g++ (GCC) 11.1.0
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
% uname -r
5.10.76-1-lts
% /usr/lib64/libc.so.6
GNU C Library (GNU libc) release release version 2.33.
Copyright (C) 2021 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
Compiled by GNU CC version 11.1.0.
libc ABIs: UNIQUE IFUNC ABSOLUTE
For bug reporting instructions, please see:
<https://bugs.archlinux.org/>Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels