Skip to content

Commit 211e5a8

Browse files
osc.h: define OSC_FALLTHROUGH
define fallthrough attribute as OSC_FALLTHROUGH to avoid confusion on Mac replace all occurances of fallthrough with the new name Signed-off-by: cristina-suteu <[email protected]>
1 parent 84e5039 commit 211e5a8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

Diff for: dialogs.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ static gint fru_connect_dialog(Dialogs *data, bool load_profile)
911911
break;
912912
default:
913913
printf("unknown response (%i) in %s(%s)\n", ret, __FILE__, __func__);
914-
fallthrough;
914+
OSC_FALLTHROUGH;
915915
case GTK_RESPONSE_CANCEL:
916916
case GTK_RESPONSE_DELETE_EVENT:
917917
break;

Diff for: osc.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ extern void math_expression_objects_clean(void);
6868
#define DBG(D...)
6969
#endif
7070

71-
#define fallthrough __attribute__((__fallthrough__))
71+
#define OSC_FALLTHROUGH __attribute__((__fallthrough__))
7272

7373
struct osc_plugin;
7474

Diff for: oscplot.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -4408,7 +4408,7 @@ static void transform_csv_print(OscPlotPrivate *priv, FILE *fp, Transform *tr)
44084408
case 2:
44094409
node = g_slist_nth(tr->plot_channels, 1);
44104410
id2 = PLOT_CHN(node->data)->name;
4411-
fallthrough;
4411+
OSC_FALLTHROUGH;
44124412
case 1:
44134413
node = g_slist_nth(tr->plot_channels, 0);
44144414
id1 = PLOT_CHN(node->data)->name;

0 commit comments

Comments
 (0)