Skip to content

Commit

Permalink
Treat warnings as errors (sailfishos-patches#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
b100dian authored Jan 5, 2023
1 parent d4c0bcb commit 218d7b1
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 28 deletions.
2 changes: 1 addition & 1 deletion patchmanager.pro
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
QMAKE_CXXFLAGS += -Werror
TEMPLATE = subdirs
SUBDIRS = src tests

OTHER_FILES += rpm/patchmanager.spec

TRANSLATIONS += $$files(translations/settings-$${TARGET}-*.ts)
Expand Down
53 changes: 27 additions & 26 deletions src/bin/dialog/dialog.pro
Original file line number Diff line number Diff line change
@@ -1,26 +1,27 @@
TEMPLATE = app
TARGET = patchmanager-dialog

QT += dbus network
CONFIG += sailfishapp c++11

dbus.files = dbus/org.SfietKonstantin.patchmanager.service
dbus.path = /usr/share/dbus-1/services
INSTALLS += dbus

systemd.files = \
systemd/dbus-org.SfietKonstantin.patchmanager.service \
systemd/lipstick-patchmanager.service
systemd.path = /usr/lib/systemd/user
INSTALLS += systemd

icons.files = patchmanager-icon.svg
icons.path = /usr/share/patchmanager/data
INSTALLS += icons

gui.files = dialog.qml
gui.path = /usr/share/patchmanager/data
INSTALLS += gui

SOURCES += \
main.cpp
TEMPLATE = app
TARGET = patchmanager-dialog

QT += dbus network
CONFIG += sailfishapp c++11
QMAKE_CXXFLAGS += -Werror

dbus.files = dbus/org.SfietKonstantin.patchmanager.service
dbus.path = /usr/share/dbus-1/services
INSTALLS += dbus

systemd.files = \
systemd/dbus-org.SfietKonstantin.patchmanager.service \
systemd/lipstick-patchmanager.service
systemd.path = /usr/lib/systemd/user
INSTALLS += systemd

icons.files = patchmanager-icon.svg
icons.path = /usr/share/patchmanager/data
INSTALLS += icons

gui.files = dialog.qml
gui.path = /usr/share/patchmanager/data
INSTALLS += gui

SOURCES += \
main.cpp
1 change: 1 addition & 0 deletions src/bin/patchmanager-daemon/patchmanager-daemon.pro
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ PKGCONFIG += rpm
PKGCONFIG += popt

INCLUDEPATH += /usr/include/rpm
QMAKE_CXXFLAGS += -Werror
QMAKE_CFLAGS += -fPIE
QMAKE_CXXFLAGS += -fPIE
QMAKE_LFLAGS += -pie
Expand Down
2 changes: 1 addition & 1 deletion src/preload/preload.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ CONFIG += plugin
CONFIG += link_pkgconfig
PKGCONFIG += libshadowutils
INCLUDEPATH += /usr/include/libshadowutils
QMAKE_CFLAGS += -std=c11
QMAKE_CFLAGS += -std=c11 -Werror

LIBS = -ldl

Expand Down
1 change: 1 addition & 0 deletions src/qml/qml.pro
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PLUGIN_IMPORT_PATH = org/SfietKonstantin/patchmanager
TEMPLATE = lib
QT = core qml network dbus gui
CONFIG += qt plugin hide_symbols
QMAKE_CXXFLAGS += -Werror

HEADERS += \
patchmanager.h \
Expand Down

0 comments on commit 218d7b1

Please sign in to comment.