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

Errors with gcc14: src/tio.cpp: error: invalid conversion from 'char16_t*' to 'const ushort*' {aka 'const short unsigned int*'} [-fpermissive] #68

Open
barracuda156 opened this issue Aug 16, 2024 · 0 comments

Comments

@barracuda156
Copy link

:info:build /opt/local/libexec/qt4/include/QtGui/qbrush.h: In member function 'QTransform QBrush::transform() const':
:info:build /opt/local/libexec/qt4/include/QtGui/qbrush.h:185:57: warning: implicitly-declared 'QTransform::QTransform(const QTransform&)' is deprecated [-Wdeprecated-copy]
:info:build   185 | inline QTransform QBrush::transform() const { return d->transform; }
:info:build       |                                                      ~~~^~~~~~~~~
:info:build /opt/local/libexec/qt4/include/QtGui/qtransform.h:136:17: note: because 'QTransform' has user-provided 'QTransform& QTransform::operator=(const QTransform&)'
:info:build   136 |     QTransform &operator=(const QTransform &);
:info:build       |                 ^~~~~~~~
:info:build src/tio.cpp: In member function 'virtual bool CTioPlainText::load(const QString&)':
:info:build src/tio.cpp:314:33: error: invalid conversion from 'char16_t*' to 'const ushort*' {aka 'const short unsigned int*'} [-fpermissive]
:info:build   314 |      data = QString::fromUtf16 ((UTF16TEXT *)ba.data());
:info:build       |                                 ^~~~~~~~~~~~~~~~~~~~~~
:info:build       |                                 |
:info:build       |                                 char16_t*
:info:build /opt/local/libexec/qt4/include/QtCore/qstring.h:332:30: note:   initializing argument 1 of 'static QString QString::fromUtf16(const ushort*, int)'
:info:build   332 |     static QString fromUtf16(const ushort *, int size = -1);
:info:build       |                              ^~~~~~~~~~~~~~
:info:build src/tio.cpp:321:34: error: invalid conversion from 'char16_t*' to 'const ushort*' {aka 'const short unsigned int*'} [-fpermissive]
:info:build   321 |       data = QString::fromUtf16 (filedata);
:info:build       |                                  ^~~~~~~~
:info:build       |                                  |
:info:build       |                                  char16_t*
:info:build /opt/local/libexec/qt4/include/QtCore/qstring.h:332:30: note:   initializing argument 1 of 'static QString QString::fromUtf16(const ushort*, int)'
:info:build   332 |     static QString fromUtf16(const ushort *, int size = -1);
:info:build       |                              ^~~~~~~~~~~~~~
:info:build src/tio.cpp:331:34: error: invalid conversion from 'char16_t*' to 'const ushort*' {aka 'const short unsigned int*'} [-fpermissive]
:info:build   331 |       data = QString::fromUtf16 (filedata);
:info:build       |                                  ^~~~~~~~
:info:build       |                                  |
:info:build       |                                  char16_t*
:info:build /opt/local/libexec/qt4/include/QtCore/qstring.h:332:30: note:   initializing argument 1 of 'static QString QString::fromUtf16(const ushort*, int)'
:info:build   332 |     static QString fromUtf16(const ushort *, int size = -1);
:info:build       |                              ^~~~~~~~~~~~~~
:info:build src/tio.cpp:341:34: error: invalid conversion from 'char16_t*' to 'const ushort*' {aka 'const short unsigned int*'} [-fpermissive]
:info:build   341 |       data = QString::fromUtf16 (filedata);
:info:build       |                                  ^~~~~~~~
:info:build       |                                  |
:info:build       |                                  char16_t*
:info:build /opt/local/libexec/qt4/include/QtCore/qstring.h:332:30: note:   initializing argument 1 of 'static QString QString::fromUtf16(const ushort*, int)'
:info:build   332 |     static QString fromUtf16(const ushort *, int size = -1);
:info:build       |                              ^~~~~~~~~~~~~~
:info:build src/tio.cpp: In member function 'virtual bool CTioGzip::load(const QString&)':
:info:build src/tio.cpp:491:37: warning: unused parameter 'fname' [-Wunused-parameter]
:info:build   491 | bool CTioGzip::load (const QString &fname)
:info:build       |                      ~~~~~~~~~~~~~~~^~~~~
:info:build src/tio.cpp: In member function 'virtual bool CTioReadOnly::save(const QString&)':
:info:build src/tio.cpp:500:41: warning: unused parameter 'fname' [-Wunused-parameter]
:info:build   500 | bool CTioReadOnly::save (const QString &fname)
:info:build       |                          ~~~~~~~~~~~~~~~^~~~~
:info:build src/tio.cpp: In member function 'virtual bool CTioFB2::load(const QString&)':
:info:build src/tio.cpp:827:44: error: invalid conversion from 'char16_t*' to 'const ushort*' {aka 'const short unsigned int*'} [-fpermissive]
:info:build   827 |           QString td = QString::fromUtf16 (t_utf16);
:info:build       |                                            ^~~~~~~
:info:build       |                                            |
:info:build       |                                            char16_t*
:info:build /opt/local/libexec/qt4/include/QtCore/qstring.h:332:30: note:   initializing argument 1 of 'static QString QString::fromUtf16(const ushort*, int)'
:info:build   332 |     static QString fromUtf16(const ushort *, int size = -1);
:info:build       |                              ^~~~~~~~~~~~~~
:info:build src/tio.cpp:911:40: error: invalid conversion from 'char16_t*' to 'const ushort*' {aka 'const short unsigned int*'} [-fpermissive]
:info:build   911 |       QString td = QString::fromUtf16 (t_utf16);
:info:build       |                                        ^~~~~~~
:info:build       |                                        |
:info:build       |                                        char16_t*
:info:build /opt/local/libexec/qt4/include/QtCore/qstring.h:332:30: note:   initializing argument 1 of 'static QString QString::fromUtf16(const ushort*, int)'
:info:build   332 |     static QString fromUtf16(const ushort *, int size = -1);
:info:build       |                              ^~~~~~~~~~~~~~
:info:build make: *** [tio.o] Error 1
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