Skip to content
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

few warnings left #17

Open
psyborg55 opened this issue May 9, 2022 · 0 comments
Open

few warnings left #17

psyborg55 opened this issue May 9, 2022 · 0 comments

Comments

@psyborg55
Copy link
Contributor

built the latest version, it is much cleaner now, still several warnings noticed:

/home/tom/new/neumodvb/neumowxsvg/src/cairo/SVGCanvasCairo.cpp: In member function ‘void wxSVGCanvasCairo::SetClipPath(const wxCSSPrimitiveValue&, wxSVGMatrix&, wxSVGSVGElement&)’:
/home/tom/new/neumodvb/neumowxsvg/src/cairo/SVGCanvasCairo.cpp:593:50: warning: ‘this’ pointer is null [-Wnonnull]
  593 |         if (!clipPathElem && clipPathElem->GetDtd() != wxSVG_CLIPPATH_ELEMENT)
      |                              ~~~~~~~~~~~~~~~~~~~~^~
/home/tom/new/neumodvb/neumowxsvg/src/SVGDocument.cpp: In member function ‘void wxSVGDocument::SetTitle(const wxString&)’:
/home/tom/new/neumodvb/neumowxsvg/src/SVGDocument.cpp:82:31: warning: ‘this’ pointer is null [-Wnonnull]
   82 |                 elem->AddChild(new wxSvgXmlNode(wxSVGXML_TEXT_NODE, wxEmptyString, title));
      |                 ~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/tom/new/neumodvb/neumowxsvg/include/wxSVG/Document.h:18,
                 from /home/tom/new/neumodvb/neumowxsvg/include/wxSVG/SVGDocument.h:17,
                 from /home/tom/new/neumodvb/neumowxsvg/src/SVGDocument.cpp:11:
/home/tom/new/neumodvb/neumowxsvg/include/wxSVGXML/svgxml.h:138:10: note: in a call to non-static member function ‘void wxSvgXmlNode::AddChild(wxSvgXmlNode*)’
  138 |     void AddChild(wxSvgXmlNode* child);
      |          ^~~~~~~~

cc1: warning: command-line option ‘-fsized-deallocation’ is valid for C++/ObjC++ but not for C

clang: warning: /home/tom/new/neumodvb/pybind11/include: 'linker' input unused [-Wunused-command-line-argument]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant