Skip to content

[GCC 14.2] Build failed with -fpermissive #162

@GermanAizek

Description

@GermanAizek

@soramimi,

/home/debian/GIT/Guitar/ui_BigDiffWindow.h: In member functionvoid Ui_BigDiffWindow::setupUi(QDialog*)’:
/home/debian/GIT/Guitar/ui_BigDiffWindow.h:64:24: error: invalid conversion frominttoQFont::Weight’ [-fpermissive]
   64 |         font.setWeight(75);
      |                        ^~
      |                        |
      |                        int
In file included from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qwidget.h:16,
                 from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/qdialog.h:8,
                 from /usr/include/x86_64-linux-gnu/qt6/QtWidgets/QDialog:1,
                 from /home/debian/GIT/t/src/BigDiffWindow.h:4:
/usr/include/x86_64-linux-gnu/qt6/QtGui/qfont.h:168:27: note:   initializing argument 1 ofvoid QFont::setWeight(Weight)’
  168 |     void setWeight(Weight weight);
      |                    ~~~~~~~^~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions