mirror of
https://github.com/openbsd/ports.git
synced 2026-06-17 23:13:55 +02:00
audio/gmpc: really fix the build with llvm 22
move the #pragma to widely included headers, this way i don't need to patch a bazillion c files..
This commit is contained in:
@@ -1,25 +0,0 @@
|
||||
fix build with llvm22 & silence debug printf
|
||||
|
||||
Index: src/browsers/playlist3-current-playlist-browser.c
|
||||
--- src/browsers/playlist3-current-playlist-browser.c.orig
|
||||
+++ src/browsers/playlist3-current-playlist-browser.c
|
||||
@@ -35,9 +35,8 @@
|
||||
|
||||
#include "playlist3-playlist-editor.h"
|
||||
|
||||
-
|
||||
-
|
||||
-
|
||||
+#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
|
||||
+#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
|
||||
enum
|
||||
{
|
||||
PLAY_QUEUE_DUMMY_PROPERTY,
|
||||
@@ -594,7 +593,6 @@ static void pl3_current_playlist_add_after_current_son
|
||||
|
||||
static int pl3_current_playlist_song_list_option_menu (GmpcPluginBrowserIface *obj, GtkWidget *tree, GtkMenu *menu)
|
||||
{
|
||||
- printf("list option menu\n");
|
||||
if(mpd_check_connected(connection) && !mpd_player_get_random(connection))
|
||||
{
|
||||
GtkWidget *item = gtk_image_menu_item_new_with_label(_("Add after current song"));
|
||||
@@ -0,0 +1,13 @@
|
||||
Index: src/egg/eggcolumnmodel.h
|
||||
--- src/egg/eggcolumnmodel.h.orig
|
||||
+++ src/egg/eggcolumnmodel.h
|
||||
@@ -25,6 +25,9 @@
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
+#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
|
||||
+#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
|
||||
+
|
||||
#define EGG_TYPE_COLUMN_MODEL (egg_column_model_get_type ())
|
||||
#define EGG_COLUMN_MODEL(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), EGG_TYPE_COLUMN_MODEL, EggColumnModel))
|
||||
#define EGG_COLUMN_MODEL_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), EGG_TYPE_COLUMN_MODEL, EggColumnModelClass))
|
||||
@@ -0,0 +1,12 @@
|
||||
Index: src/main.h
|
||||
--- src/main.h.orig
|
||||
+++ src/main.h
|
||||
@@ -39,6 +39,8 @@
|
||||
|
||||
#include "playlist3-messages.h"
|
||||
|
||||
+#pragma clang diagnostic ignored "-Wincompatible-function-pointer-types"
|
||||
+#pragma clang diagnostic ignored "-Wincompatible-pointer-types"
|
||||
|
||||
/**
|
||||
* Some gobjects
|
||||
Reference in New Issue
Block a user