Bug ID | 1094222 |
---|---|
Summary | gcc-8 on opensuse tumbleweed points to wrong location when displaying error |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Development |
Assignee | bnc-team-screening@forge.provo.novell.com |
Reporter | jmcdonough@suse.com |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
Created attachment 770999 [details]
.i file from building lib/util/debug.c
Compiling the latest upstream samba with -O3, -Werror, among other flags, fails
but doesn't point to the correct error location. The line it's giving us
doesn't make any sense for the error printed.
Below is the failing command and error messages. I'll attach the .i as well.
gcc-8 -O3 -DDEVELOPER -DDEBUG_PASSWORD -fPIC -D_REENTRANT
-D_POSIX_PTHREAD_SEMANTICS -fstack-protector -g -Wall -Wshadow
-Wmissing-prototypes -Wcast-align -Wcast-qual -fno-common -Werror=address
-Werror=strict-prototypes -Wstrict-prototypes -Werror=write-strings
-Wwrite-strings -Werror-implicit-function-declaration -Werror=pointer-arith
-Wpointer-arith -Werror=declaration-after-statement
-Wdeclaration-after-statement -Werror=return-type -Wreturn-type
-Werror=uninitialized -Wuninitialized -Wimplicit-fallthrough
-Werror=strict-overflow -Wstrict-overflow=2 -Wformat=2 -Wno-format-y2k
-Wno-format-zero-length -Werror=format-security -Wformat-security
-Werror=format -Werror -Wno-error=deprecated-declarations
-Wno-error=tautological-compare -DSTATIC_samba_debug_MODULES=NULL
-DSTATIC_samba_debug_MODULES_PROTO="extern void
__samba_debug_dummy_module_proto(void)" -MD -Idefault/include/public
-I../include/public -Idefault/source4 -I../source4 -Idefault/lib -I../lib
-Idefault/source4/lib -I../source4/lib -Idefault/source4/include
-I../source4/include -Idefault/include -I../include -Idefault/lib/replace
-I../lib/replace -Idefault -I.. -Idefault/lib/talloc -I../lib/talloc
-I/usr/local/include -D_SAMBA_BUILD_=4 -DHAVE_CONFIG_H=1 -D_GNU_SOURCE=1
-D_XOPEN_SOURCE_EXTENDED=1 ../lib/util/debug.c -c -save-temps -o
default/lib/util/debug_11.o
../lib/util/debug.c: In function 'debug_parse_levels':
../lib/util/debug.c:796:5: error: assuming pointer wraparound does not occur
when comparing P +- C1 with P +- C2 [-Werror=strict-overflow]
bool debug_parse_levels(const char *params_str)
^~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors