mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +00:00
Ports/freedink: Add required const to char* declarations
This allows FreeDink to be built with GCC 13.
This commit is contained in:
parent
0103940cee
commit
cecc554102
Notes:
sideshowbarker
2024-07-17 01:55:29 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/cecc554102 Pull-request: https://github.com/SerenityOS/serenity/pull/20628 Reviewed-by: https://github.com/timschumi ✅
3 changed files with 32 additions and 1 deletions
|
@ -8,7 +8,7 @@ Subject: [PATCH] Remove android-specific SDL hint
|
|||
1 file changed, 4 deletions(-)
|
||||
|
||||
diff --git a/src/input.cpp b/src/input.cpp
|
||||
index b5ae21e..b6ac494 100644
|
||||
index b5ae21e24b802245e4d8a102b2ff820d4ceeea94..b6ac4947cc5f7991b7f8b79da34da24aee5d048d 100644
|
||||
--- a/src/input.cpp
|
||||
+++ b/src/input.cpp
|
||||
@@ -89,10 +89,6 @@ void input_init(void)
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
||||
From: Tim Ledbetter <timledbetter@gmail.com>
|
||||
Date: Wed, 2 Aug 2023 23:56:50 +0100
|
||||
Subject: [PATCH] Add required const to char* declarations
|
||||
|
||||
---
|
||||
src/gfx_fonts.cpp | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/src/gfx_fonts.cpp b/src/gfx_fonts.cpp
|
||||
index b00816e922a619e93f2ce9f3d4e202da0da9fa36..2cedd8af5fd99edf7a31ea7b6eeeabe09ede180c 100644
|
||||
--- a/src/gfx_fonts.cpp
|
||||
+++ b/src/gfx_fonts.cpp
|
||||
@@ -293,10 +293,10 @@ void set_font_color(int no, int r, int g, int b)
|
||||
*/
|
||||
void setup_font(TTF_Font *font)
|
||||
{
|
||||
- char *familyname = TTF_FontFaceFamilyName(font);
|
||||
+ const char *familyname = TTF_FontFaceFamilyName(font);
|
||||
if(familyname)
|
||||
log_info("The family name of the face in the font is: %s", familyname);
|
||||
- char *stylename = TTF_FontFaceStyleName(font);
|
||||
+ const char *stylename = TTF_FontFaceStyleName(font);
|
||||
if(stylename)
|
||||
log_info("The name of the face in the font is: %s", stylename);
|
||||
log_info("The font max height is: %d", TTF_FontHeight(font));
|
|
@ -5,3 +5,8 @@
|
|||
Remove android-specific SDL hint
|
||||
|
||||
|
||||
## `0002-Add-required-const-to-char-declarations.patch`
|
||||
|
||||
Add required const to char* declarations
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue