-
Notifications
You must be signed in to change notification settings - Fork 345
Fix mysterious Perl warnings #886
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
Merged
DaveCTurner
merged 1 commit into
elastic:master
from
DaveCTurner:2019-05-14-fix-perl-warnings
May 15, 2019
Merged
Fix mysterious Perl warnings #886
DaveCTurner
merged 1 commit into
elastic:master
from
DaveCTurner:2019-05-14-fix-perl-warnings
May 15, 2019
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Today, building the docs emits the following warnings: Scalar value @edit_urls{ $doc_toplevel } better written as $edit_urls{ $doc_toplevel } at /Users/davidturner/src/docs/build_docs.pl line 144. Scalar value @edit_urls{ $resource_toplevel } better written as $edit_urls{ $resource_toplevel } at /Users/davidturner/src/docs/build_docs.pl line 150. This commit implements these suggestions to suppress these warnings.
It's entirely possible that this is environmental. My Perl version looks like this:
|
Lgtm. I don't recall seeing that warning but I buy it's argument.
I don't presently have an assertion in the integration tests that I don't
get any perl warnings but I'll add that to my list. Not that it'd help I
don't get those warnings locally, but it'd make sure they don't just scroll
by without me noticing.
For what it is worth if you build the docs without the .pl extension you'll
get a more controlled environment that auto-manages dependencies. This is
what ci does.
…On Tue, May 14, 2019, 06:44 David Turner ***@***.***> wrote:
It's entirely possible that this is environmental. My Perl version looks
like this:
$ perl -V
Summary of my perl5 (revision 5 version 18 subversion 2) configuration:
Platform:
osname=darwin, osvers=18.0, archname=darwin-thread-multi-2level
uname='darwin osx391.sd.apple.com 18.0 darwin kernel version 17.0.0: fri may 4 10:33:38 pdt 2018; root:xnu-4570.1.46.100.2~1development_x86_64 x86_64 '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe -Dldflags= -Dman3ext=3pm -Duseithreads -Duseshrplib -Dinc_version_list=none -Dcc=cc'
hint=recommended, useposix=true, d_sigaction=define
useithreads=define, usemultiplicity=define
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags =' -g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector',
optimize='-Os',
cppflags='-g -pipe -fno-common -DPERL_DARWIN -fno-strict-aliasing -fstack-protector'
ccversion='', gccversion='4.2.1 Compatible Apple LLVM 10.0.1 (clang-1001.0.37.14)', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='cc', ldflags =' -fstack-protector'
libpth=/usr/lib /usr/local/lib
libs=
perllibs=
libc=, so=dylib, useshrplib=true, libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags=' -bundle -undefined dynamic_lookup -fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: HAS_TIMES MULTIPLICITY PERLIO_LAYERS
PERL_DONT_CREATE_GVSV
PERL_HASH_FUNC_ONE_AT_A_TIME_HARD
PERL_IMPLICIT_CONTEXT PERL_MALLOC_WRAP
PERL_PRESERVE_IVUV PERL_SAWAMPERSAND 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_PERLIO USE_PERL_ATOF
USE_REENTRANT_API
Locally applied patches:
/Library/Perl/Updates/<version> comes before system perl directories
installprivlib and installarchlib points to the Updates directory
Built under darwin
Compiled at Feb 25 2019 19:59:47
@inc:
/Library/Perl/5.18/darwin-thread-multi-2level
/Library/Perl/5.18
/Network/Library/Perl/5.18/darwin-thread-multi-2level
/Network/Library/Perl/5.18
/Library/Perl/Updates/5.18.2
/System/Library/Perl/5.18/darwin-thread-multi-2level
/System/Library/Perl/5.18
/System/Library/Perl/Extras/5.18/darwin-thread-multi-2level
/System/Library/Perl/Extras/5.18
.
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#886?email_source=notifications&email_token=AABUXIQHPWQW7KWHYNNDNNLPVKJZ7A5CNFSM4HMYUCF2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODVLCUJQ#issuecomment-492186150>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABUXISBDRRYLA722VQEZDDPVKJZ7ANCNFSM4HMYUCFQ>
.
|
przemekwitek
pushed a commit
to przemekwitek/docs
that referenced
this pull request
May 21, 2019
Today, building the docs emits the following warnings: Scalar value @edit_urls{ $doc_toplevel } better written as $edit_urls{ $doc_toplevel } at /Users/davidturner/src/docs/build_docs.pl line 144. Scalar value @edit_urls{ $resource_toplevel } better written as $edit_urls{ $resource_toplevel } at /Users/davidturner/src/docs/build_docs.pl line 150. This commit implements these suggestions to suppress these warnings.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Today, building the docs emits the following warnings:
This commit implements these suggestions to suppress these warnings.