mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
Ladybird: Fix compilation on macOS/Clang
- Silences the -Wuser-defined-literals warning which is triggered by our use of the `sv` suffix for StringView - Removes an unused captured `this` pointer [-Wunused-lambda-capture] - Changes a JSONArray.h include to JSONObject.h to get the definition for `JSONValue::serialize`. This is needed because template functions are not exported for dylibs on macOS. This is a hack; the JSON headers should be refactored so that each one includes the definition of the template functions it sees. -- Maybe we should build with -fvisibility-inlines-hidden on Linux to catch issues like this?
This commit is contained in:
parent
d1d6a204fc
commit
af5250b2cb
3 changed files with 3 additions and 2 deletions
|
@ -28,6 +28,7 @@ include(cmake/FetchLagom.cmake)
|
||||||
# Lagom warnings
|
# Lagom warnings
|
||||||
include(${Lagom_SOURCE_DIR}/../CMake/lagom_compile_options.cmake)
|
include(${Lagom_SOURCE_DIR}/../CMake/lagom_compile_options.cmake)
|
||||||
add_compile_options(-Wno-expansion-to-defined)
|
add_compile_options(-Wno-expansion-to-defined)
|
||||||
|
add_compile_options(-Wno-user-defined-literals)
|
||||||
|
|
||||||
set(CMAKE_AUTOMOC ON)
|
set(CMAKE_AUTOMOC ON)
|
||||||
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Network)
|
find_package(Qt6 REQUIRED COMPONENTS Core Widgets Network)
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "RequestManagerQt.h"
|
#include "RequestManagerQt.h"
|
||||||
#include <AK/JsonArray.h>
|
#include <AK/JsonObject.h>
|
||||||
|
|
||||||
RequestManagerQt::RequestManagerQt()
|
RequestManagerQt::RequestManagerQt()
|
||||||
{
|
{
|
||||||
|
|
|
@ -53,7 +53,7 @@ Tab::Tab(QMainWindow* window)
|
||||||
const QPoint* pos = new QPoint(0, size().height() - 15);
|
const QPoint* pos = new QPoint(0, size().height() - 15);
|
||||||
QToolTip::showText(*pos, title, this);
|
QToolTip::showText(*pos, title, this);
|
||||||
});
|
});
|
||||||
QObject::connect(m_view, &WebView::linkUnhovered, [this] {
|
QObject::connect(m_view, &WebView::linkUnhovered, [] {
|
||||||
QToolTip::hideText();
|
QToolTip::hideText();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue