All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH BlueZ 0/1] Fix compilation with clang
@ 2018-08-07 14:09 David Carlos Manuelda
  2018-08-07 14:09 ` [PATCH BlueZ 1/1] build: Clang fix - ISO C forbids nested functions David Carlos Manuelda
  0 siblings, 1 reply; 2+ messages in thread
From: David Carlos Manuelda @ 2018-08-07 14:09 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: David Carlos Manuelda

ISO C forbids nested functions, which gcc implemented as extension

David Carlos Manuelda (1):
  build: Clang fix - ISO C forbids nested functions

 profiles/midi/midi.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

-- 
2.18.0


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH BlueZ 1/1] build: Clang fix - ISO C forbids nested functions
  2018-08-07 14:09 [PATCH BlueZ 0/1] Fix compilation with clang David Carlos Manuelda
@ 2018-08-07 14:09 ` David Carlos Manuelda
  0 siblings, 0 replies; 2+ messages in thread
From: David Carlos Manuelda @ 2018-08-07 14:09 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: David Carlos Manuelda

---
 profiles/midi/midi.c | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/profiles/midi/midi.c b/profiles/midi/midi.c
index 1ee5cb16f..f08728e4b 100644
--- a/profiles/midi/midi.c
+++ b/profiles/midi/midi.c
@@ -71,20 +71,20 @@ struct midi {
 	struct midi_write_parser midi_out;
 };
 
+static void foreach_cb(const struct midi_write_parser *parser, void *user_data) {
+	struct midi *midi = user_data;
+	bt_gatt_client_write_without_response(midi->client,
+	                                      midi->midi_io_handle,
+	                                      false,
+	                                      midi_write_data(parser),
+	                                      midi_write_data_size(parser));
+}
+
 static bool midi_write_cb(struct io *io, void *user_data)
 {
 	struct midi *midi = user_data;
 	int err;
 
-	void foreach_cb(const struct midi_write_parser *parser, void *user_data) {
-		struct midi *midi = user_data;
-		bt_gatt_client_write_without_response(midi->client,
-		                                      midi->midi_io_handle,
-		                                      false,
-		                                      midi_write_data(parser),
-		                                      midi_write_data_size(parser));
-	};
-
 	do {
 		snd_seq_event_t *event = NULL;
 
-- 
2.18.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-07 14:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-07 14:09 [PATCH BlueZ 0/1] Fix compilation with clang David Carlos Manuelda
2018-08-07 14:09 ` [PATCH BlueZ 1/1] build: Clang fix - ISO C forbids nested functions David Carlos Manuelda

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.