NatLabRockies / NatLabRockies/wex
Linux Build Warnings
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 66
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
Build wex on Linux Ubuntu 20.04.2 LTS (After Issue #117 was fixed) resulted in the follow warnings:
/home/whamilt2/Documents/spt_dev/wex/src/codeedit.cpp: In member function ‘void wxCodeEditCtrl::SetLanguage(wxCodeEditCtrl::Language)’:
/home/whamilt2/Documents/spt_dev/wex/src/codeedit.cpp:306:19: warning: ‘void wxStyledTextCtrl::SetStyleBits(int)’ is eprecated: This method uses a function deprecated in the Scintilla library. [-Wdeprecated-declarations]
306 | SetStyleBits(8);
| ^
In file included from /home/whamilt2/Documents/spt_dev/wex/src/../include/wex/codeedit.h:37,
from /home/whamilt2/Documents/spt_dev/wex/src/codeedit.cpp:31:
/whamilt2/wxWidgets-3.1.5/include/wx-3.1/wx/stc/stc.h:3349:10: note: declared here
3349 | void SetStyleBits(int bits);
| ^~~~~~~~~~~~
In file included from /home/whamilt2/Documents/spt_dev/wex/src/pdf/pdfprint.cpp:61:
/home/whamilt2/Documents/spt_dev/wex/src/../include/wex/pdf/pdfprint.h: In member function ‘virtual void wxPdfPreviewDCImpl::DoGetClippingBox(wxCoord*, wxCoord*, wxCoord*, wxCoord*) const’:
/home/whamilt2/Documents/spt_dev/wex/src/../include/wex/pdf/pdfprint.h:747:41: warning: ‘virtual void wxDCImpl::DoGetClippingBox(wxCoord*, wxCoord*, wxCoord*, wxCoord*) const’ is deprecated [-Wdeprecated-declarations]
747 | m_dc.DoGetClippingBox(x, y, w, h);
| ^
In file included from /whamilt2/wxWidgets-3.1.5/include/wx-3.1/wx/wxprec.h:12,
from /home/whamilt2/Documents/spt_dev/wex/src/pdf/pdfprint.cpp:13:
/whamilt2/wxWidgets-3.1.5/include/wx-3.1/wx/dc.h:468:5: note: declared here
468 | wxDEPRECATED_BUT_USED_INTERNALLY(
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the deprecated calls at src/codeedit.cpp:306 and include/wex/pdf/pdfprint.h:747, then build WEX on Linux Ubuntu 20.04.2 LTS to reproduce the warnings. Done means the Linux build no longer emits these two deprecation warnings.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp, linux
- Domain
- build-system, desktop, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100