Bug 223748 - security/veracrypt: fix build with wxgtk30 - 3.0.3.1
Summary: security/veracrypt: fix build with wxgtk30 - 3.0.3.1
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Jan Beich
URL:
Keywords:
Depends on:
Blocks: 220932
  Show dependency treegraph
 
Reported: 2017-11-19 13:44 UTC by Ivan Rozhuk
Modified: 2018-01-21 02:26 UTC (History)
1 user (show)

See Also:
bugzilla: maintainer-feedback? (acm)


Attachments
build fix (744 bytes, patch)
2017-11-19 13:44 UTC, Ivan Rozhuk
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Rozhuk 2017-11-19 13:44:55 UTC
Created attachment 188116 [details]
build fix

...
gmake[2]: Entering directory '/wrkdirs/usr/ports/security/veracrypt/work/veracrypt-1.21/src/Main'
Precompiling SystemPrecompiled.h
c++: warning: treating 'c-header' input as 'c++-header' when in C++ mode, this behavior is deprecated
Compiling Application.cpp
In file included from Application.cpp:19:
In file included from /wrkdirs/usr/ports/security/veracrypt/work/veracrypt-1.21/src/Main/GraphicUserInterface.h:20:
/wrkdirs/usr/ports/security/veracrypt/work/veracrypt-1.21/src/Main/Forms/WaitDialog.h:81:7: warning: 'VeraCrypt::WaitDialog::GetCharWidth' hides overloaded virtual function [-Woverloaded-virtual]
                int GetCharWidth (wxWindow *window) const
                    ^
/usr/local/include/wx-3.0/wx/gtk/window.h:92:17: note: hidden overloaded virtual function 'wxWindow::GetCharWidth' declared here: different number of parameters (0 vs 1)
    virtual int GetCharWidth() const;
                ^
1 warning generated.
Compiling CommandLineInterface.cpp
Compiling FavoriteVolume.cpp
Compiling LanguageStrings.cpp
Compiling StringFormatter.cpp
Compiling TextUserInterface.cpp
TextUserInterface.cpp:122:5: error: const_cast from 'const wxScopedWCharBuffer' (aka 'const wxScopedCharTypeBuffer<wchar_t>') to 'wchar_t *' is not allowed
                                const_cast <wchar_t *> (passwordStr.wc_str())[i] = L'X';
                                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
Comment 1 Ivan Rozhuk 2017-12-06 22:21:49 UTC
ping
Comment 2 Jan Beich freebsd_committer freebsd_triage 2018-01-21 02:26:00 UTC
Thanks. Landed in ports r459567.