Skip to content

Instantly share code, notes, and snippets.

@angrystar170
Created November 29, 2022 08:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angrystar170/1cc0ece5dec24672a5d4b75959382a36 to your computer and use it in GitHub Desktop.
Save angrystar170/1cc0ece5dec24672a5d4b75959382a36 to your computer and use it in GitHub Desktop.
errors when building bomi-git with AUR
misc/log.cpp: In static member function ‘static void Log::print(Level, const QByteArray&)’:
/usr/include/elogind/systemd/sd-journal.h:51:71: error: format not a string literal and no format arguments [-Werror=format-security]
51 | #define sd_journal_print(priority, ...) sd_journal_print_with_location(priority, "CODE_FILE=" __FILE__, "CODE_LINE=" _SD_STRINGIFY(__LINE__), __func__, __VA_ARGS__)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
misc/log.cpp:61:9: note: in expansion of macro ‘sd_journal_print’
61 | sd_journal_print(jp[lv], log.constData());
| ^~~~~~~~~~~~~~~~
.
.
.
In file included from misc/keymodifieractionmap.cpp:2:
misc/json.hpp:362:23: warning: ‘template<class T> class QLinkedList’ is deprecated: Use std::list instead [-Wdeprecated-declarations]
362 | JSON_DECLARE_ARRAY_IO(QLinkedList)
| ^~~~~~~~~~~
misc/json.hpp:358:20: note: in definition of macro ‘JSON_DECLARE_ARRAY_IO’
358 | auto json_io(const C<T>*) \
| ^
In file included from /usr/include/qt/QtCore/qvarlengtharray.h:43,
from /usr/include/qt/QtCore/qmetatype.h:48,
from /usr/include/qt/QtCore/qobject.h:54,
from /usr/include/qt/QtWidgets/qlayout.h:44,
from /usr/include/qt/QtWidgets/qboxlayout.h:44,
from /usr/include/qt/QtWidgets/QHBoxLayout:1,
from stdafx.hpp:12:
/usr/include/qt/QtCore/qcontainerfwd.h:51:26: note: declared here
51 | template <class T> class QLinkedList;
| ^~~~~~~~~~~
misc/json.hpp: In function ‘auto json_io(const QLinkedList<T>*)’:
misc/json.hpp:362:23: warning: ‘template<class T> class QLinkedList’ is deprecated: Use std::list instead [-Wdeprecated-declarations]
362 | JSON_DECLARE_ARRAY_IO(QLinkedList)
| ^~~~~~~~~~~
misc/json.hpp:359:31: note: in definition of macro ‘JSON_DECLARE_ARRAY_IO’
359 | { static const JsonArrayIO<T, C<T>> io{}; return &io; }
| ^
/usr/include/qt/QtCore/qcontainerfwd.h:51:26: note: declared here
51 | template <class T> class QLinkedList;
| ^~~~~~~~~~~
cc1plus: some warnings being treated as errors
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment