Added a bunch of warning flags and fixed most of the shadowed
variables.
This commit is contained in:
@@ -18,6 +18,14 @@ HEADERS += \
|
||||
src/indicator/trayindicator.h \
|
||||
src/indicator/unityindicator.h
|
||||
|
||||
CXXFLAGS_WARNINGS = -Wall -Wextra -Wshadow -Wcast-align -Wctor-dtor-privacy \
|
||||
-Wdisabled-optimization -Wformat=2 -Winit-self -Wmissing-declarations \
|
||||
-Wmissing-include-dirs -Woverloaded-virtual -Wredundant-decls \
|
||||
-Wstrict-overflow=5 -Wundef -Wno-unused -Wno-missing-field-initializers \
|
||||
-Wno-format-nonliteral
|
||||
|
||||
QMAKE_CXXFLAGS += -Wno-write-strings -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS $$CXXFLAGS_WARNINGS
|
||||
|
||||
DATADIR = $$PREFIX/share
|
||||
|
||||
actions64.path = $$DATADIR/icons/hicolor/64x64/actions
|
||||
|
Reference in New Issue
Block a user