-
Notifications
You must be signed in to change notification settings - Fork 577
mg.c: Silence compiler warning #18649
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This was generating warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]
Could you provide the OS, Spot-checking my recent builds, I don't see any warnings associated with Thank you very much. |
On 3/17/21 4:08 PM, James E Keenan wrote:
This was generating
warning: type qualifiers ignored on cast result type
[-Wignored-qualifiers]
Could you provide the OS, |perl -V:config_args| and C-compiler info for
the warnings you are trying to silence?
Spot-checking my recent builds, I don't see any warnings associated with
|mg.c|.
Summary of my perl5 (revision 5 version 33 subversion 8) configuration:
Commit id: bbb5866
Platform:
osname=linux
osvers=5.4.0-66-generic
archname=x86_64-linux-thread-multi
uname='linux khw-xps-8930 5.4.0-66-generic #74-ubuntu smp wed jan
27 22:54:38 utc 2021 x86_64 x86_64 x86_64 gnulinux '
config_args='-des -Uversiononly -Dprefix=/home/khw/blead -Dusedevel
-Doptimize=-O0 -DDEBUGGING -A'optimize=-ggdb3'
-Accflags='-Wno-deprecated' -Dman1dir='none' -Dman3dir='none' -Dcc=g++
-Dusecbacktrace -Dusethreads'
hint=recommended
useposix=true
d_sigaction=define
useithreads=define
usemultiplicity=define
use64bitint=define
use64bitall=define
uselongdouble=undef
usemymalloc=n
default_inc_excludes_dot=define
Compiler:
cc='g++'
ccflags ='-D_REENTRANT -D_GNU_SOURCE -Wno-deprecated -fwrapv
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-D_FORTIFY_SOURCE=2'
optimize='-O0 -ggdb3'
cppflags='-D_REENTRANT -D_GNU_SOURCE -Wno-deprecated -fwrapv
-DDEBUGGING -fno-strict-aliasing -pipe -fstack-protector-strong
-I/usr/local/include'
ccversion=''
gccversion='9.3.0'
gccosandvers=''
intsize=4
longsize=8
ptrsize=8
doublesize=8
byteorder=12345678
doublekind=3
d_longlong=define
longlongsize=8
d_longdbl=define
longdblsize=16
longdblkind=3
ivtype='long'
ivsize=8
nvtype='double'
nvsize=8
Off_t='off_t'
lseeksize=8
alignbytes=8
prototype=define
Linker and Libraries:
ld='g++'
ldflags =' -fstack-protector-strong -L/usr/local/lib'
libpth=/usr/include/c++/9 /usr/include/x86_64-linux-gnu/c++/9
/usr/include/c++/9/backward /usr/local/lib /usr/include/x86_64-linux-gnu
/usr/lib /lib/x86_64-linux-gnu /lib/../lib /usr/lib/x86_64-linux-gnu
/usr/lib/../lib /lib
libs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=libc-2.31.so
so=so
useshrplib=false
libperl=libperl.a
gnulibc_version='2.31'
Dynamic Linking:
dlsrc=dl_dlopen.xs
dlext=so
d_dlsymun=undef
ccdlflags='-Wl,-E'
cccdlflags='-fPIC'
lddlflags='-shared -O0 -ggdb3 -L/usr/local/lib
-fstack-protector-strong'
Characteristics of this binary (from libperl):
Compile-time options:
DEBUGGING
HAS_TIMES
MULTIPLICITY
PERLIO_LAYERS
PERL_COPY_ON_WRITE
PERL_DONT_CREATE_GVSV
PERL_IMPLICIT_CONTEXT
PERL_MALLOC_WRAP
PERL_OP_PARENT
PERL_PRESERVE_IVUV
PERL_TRACK_MEMPOOL
PERL_USE_DEVEL
USE_64_BIT_ALL
USE_64_BIT_INT
USE_ITHREADS
USE_LARGE_FILES
USE_LOCALE
USE_LOCALE_COLLATE
USE_LOCALE_CTYPE
USE_LOCALE_NUMERIC
USE_LOCALE_TIME
USE_PERLIO
USE_PERL_ATOF
USE_REENTRANT_API
USE_THREAD_SAFE_LOCALE
Built under linux
Compiled at Mar 15 2021 07:02:52
%ENV:
PERL5OPT="-w"
PERL_DIFF_TOOL="wgdiff"
PERL_POD_PEDANTIC="1"
PERL_TEST_HARNESS_ASAP="1"
@inc:
/home/khw/perl/blead/lib
/home/khw/perl/blead/t
/home/khw/blead/lib/perl5/site_perl/5.33.8/x86_64-linux-thread-multi
/home/khw/blead/lib/perl5/site_perl/5.33.8
/home/khw/blead/lib/perl5/5.33.8/x86_64-linux-thread-multi
/home/khw/blead/lib/perl5/5.33.8
|
Thanks. I compiled perl on FreeBSD-12 using g++-9.3.0 as the C-compiler. On blead I got:
In your branch I got:
So those two warnings in mg.c have been eliminated. I will merge the branch. Thank you very much. |
This was generating
warning: type qualifiers ignored on cast result type [-Wignored-qualifiers]