Meson: many wrong warnings when generating the gir file
@Salamandar: mostly a call for your help! :-)
GIMP version: master
Operating System: (likely all, at least Linux and Windows)
Package: git
Description of the bug
The introspection outputs a lot of weird (and definitely wrong) warnings when running g-ir-scanner
.
Reproduction
Is the bug reproducible? Always
Reproduction steps:
- delete the gir file to force re-build:
rm libgimp/Gimp-3.0.gir
- run
ninja
Expected result: we should have the same (very few and introspection-related) warnings as the autotools
build.
Actual result: instead we get these:
[188/197] Generating Gimp-3.0.gir with a custom command.
cc1: warning: -Wformat-security ignored without -Wformat [-Wformat-security]
/home/jehan/dev/src/gimp-master/libgimp/gimpaspectpreview.h:47: syntax error, unexpected identifier in ' GimpPreview parent_instance;' at 'GimpPreview'
/home/jehan/dev/src/gimp-master/libgimp/gimpaspectpreview.h:50: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpaspectpreview.h:54: syntax error, unexpected identifier in ' GimpPreviewClass parent_class;' at 'GimpPreviewClass'
/home/jehan/dev/src/gimp-master/libgimp/gimpaspectpreview.h:65: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpaspectpreview.h:70: syntax error, unexpected identifier in 'GtkWidget * gimp_aspect_preview_new_from_drawable (GimpDrawable *drawable);' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpaspectpreview.h:70: syntax error, unexpected ')', expecting ',' or ';' in 'GtkWidget * gimp_aspect_preview_new_from_drawable (GimpDrawable *drawable);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpselectbutton.h:46: syntax error, unexpected identifier in ' GtkBox parent_instance;' at 'GtkBox'
/home/jehan/dev/src/gimp-master/libgimp/gimpselectbutton.h:52: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpselectbutton.h:56: syntax error, unexpected identifier in ' GtkBoxClass parent_class;' at 'GtkBoxClass'
/home/jehan/dev/src/gimp-master/libgimp/gimpselectbutton.h:71: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpselectbutton.h:76: syntax error, unexpected '*', expecting ')' or ',' in 'void gimp_select_button_close_popup (GimpSelectButton *button);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:48: syntax error, unexpected identifier in ' GimpSelectButton parent_instance;' at 'GimpSelectButton'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:51: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:58: syntax error, unexpected '*', expecting ')' or ',' in ' void (* brush_set) (GimpBrushSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:60: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gdouble opacity,' at 'gdouble'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:61: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint spacing,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:62: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GimpLayerMode paint_mode,' at 'GimpLayerMode'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:63: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint width,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:64: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint height,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:65: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const guchar *mask_data,' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:66: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gboolean dialog_closing);' at 'gboolean'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:77: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:82: syntax error, unexpected identifier in 'GtkWidget * gimp_brush_select_button_new (const gchar *title,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:83: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *brush_name,' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:84: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gdouble opacity,' at 'gdouble'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:85: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint spacing,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:86: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GimpLayerMode paint_mode);' at 'GimpLayerMode'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:88: syntax error, unexpected '*', expecting ')' or ',' in 'const gchar * gimp_brush_select_button_get_brush (GimpBrushSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:90: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint *spacing,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:91: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GimpLayerMode *paint_mode);' at 'GimpLayerMode'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:91: syntax error, unexpected ')', expecting ',' or ';' in ' GimpLayerMode *paint_mode);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:92: syntax error, unexpected '*', expecting ')' or ',' in 'void gimp_brush_select_button_set_brush (GimpBrushSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:94: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gdouble opacity,' at 'gdouble'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:95: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint spacing,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpbrushselectbutton.h:96: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GimpLayerMode paint_mode);' at 'GimpLayerMode'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:47: syntax error, unexpected identifier in ' GimpScrolledPreview parent_instance;' at 'GimpScrolledPreview'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:50: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:54: syntax error, unexpected identifier in ' GimpScrolledPreviewClass parent_class;' at 'GimpScrolledPreviewClass'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:65: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:70: syntax error, unexpected identifier in 'GtkWidget * gimp_drawable_preview_new_from_drawable (GimpDrawable *drawable);' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:70: syntax error, unexpected ')', expecting ',' or ';' in 'GtkWidget * gimp_drawable_preview_new_from_drawable (GimpDrawable *drawable);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:71: syntax error, unexpected '*', expecting ')' or ',' in 'GimpDrawable * gimp_drawable_preview_get_drawable (GimpDrawablePreview *preview);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:74: syntax error, unexpected '*', expecting ')' or ',' in '__attribute__((visibility("hidden"))) void _gimp_drawable_preview_area_draw_thumb (GimpPreviewArea *area,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:76: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint width,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpdrawablepreview.h:77: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint height);' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpexport.h:78: syntax error, unexpected identifier in 'GtkWidget * gimp_export_dialog_new (const gchar *format_name,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpexport.h:79: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *role,' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpexport.h:80: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *help_id);' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpexport.h:80: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *help_id);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:48: syntax error, unexpected identifier in ' GimpSelectButton parent_instance;' at 'GimpSelectButton'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:51: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:58: syntax error, unexpected '*', expecting ')' or ',' in ' void (* font_set) (GimpFontSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:60: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gboolean dialog_closing);' at 'gboolean'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:71: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:76: syntax error, unexpected identifier in 'GtkWidget * gimp_font_select_button_new (const gchar *title,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:77: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *font_name);' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:77: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *font_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:79: syntax error, unexpected '*', expecting ')' or ',' in 'const gchar * gimp_font_select_button_get_font (GimpFontSelectButton *button);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:80: syntax error, unexpected '*', expecting ')' or ',' in 'void gimp_font_select_button_set_font (GimpFontSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpfontselectbutton.h:81: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *font_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:48: syntax error, unexpected identifier in ' GimpSelectButton parent_instance;' at 'GimpSelectButton'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:51: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:58: syntax error, unexpected '*', expecting ')' or ',' in ' void (* gradient_set) (GimpGradientSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:60: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint width,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:61: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gdouble *gradient_data,' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:62: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gboolean dialog_closing);' at 'gboolean'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:73: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:78: syntax error, unexpected identifier in 'GtkWidget * gimp_gradient_select_button_new (const gchar *title,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:79: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *gradient_name);' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:79: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *gradient_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:81: syntax error, unexpected '*', expecting ')' or ',' in 'const gchar * gimp_gradient_select_button_get_gradient (GimpGradientSelectButton *button);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:82: syntax error, unexpected '*', expecting ')' or ',' in 'void gimp_gradient_select_button_set_gradient (GimpGradientSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpgradientselectbutton.h:83: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *gradient_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpimagecombobox.h:45: syntax error, unexpected identifier in 'GtkWidget * gimp_image_combo_box_new (GimpImageConstraintFunc constraint,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpimagecombobox.h:46: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gpointer data,' at 'gpointer'
/home/jehan/dev/src/gimp-master/libgimp/gimpimagecombobox.h:47: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GDestroyNotify data_destroy);' at 'GDestroyNotify'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:62: syntax error, unexpected identifier in 'GtkWidget * gimp_drawable_combo_box_new (GimpItemConstraintFunc constraint,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:63: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gpointer data,' at 'gpointer'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:64: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GDestroyNotify data_destroy);' at 'GDestroyNotify'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:66: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gpointer data,' at 'gpointer'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:67: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GDestroyNotify data_destroy);' at 'GDestroyNotify'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:69: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gpointer data,' at 'gpointer'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:70: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GDestroyNotify data_destroy);' at 'GDestroyNotify'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:72: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gpointer data,' at 'gpointer'
/home/jehan/dev/src/gimp-master/libgimp/gimpitemcombobox.h:73: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GDestroyNotify data_destroy);' at 'GDestroyNotify'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:48: syntax error, unexpected identifier in ' GimpSelectButton parent_instance;' at 'GimpSelectButton'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:51: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:58: syntax error, unexpected '*', expecting ')' or ',' in ' void (* palette_set) (GimpPaletteSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:60: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gboolean dialog_closing);' at 'gboolean'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:71: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:76: syntax error, unexpected identifier in 'GtkWidget * gimp_palette_select_button_new (const gchar *title,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:77: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *palette_name);' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:77: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *palette_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:79: syntax error, unexpected '*', expecting ')' or ',' in 'const gchar * gimp_palette_select_button_get_palette (GimpPaletteSelectButton *button);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:80: syntax error, unexpected '*', expecting ')' or ',' in 'void gimp_palette_select_button_set_palette (GimpPaletteSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimppaletteselectbutton.h:81: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *palette_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:48: syntax error, unexpected identifier in ' GimpSelectButton parent_instance;' at 'GimpSelectButton'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:51: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:58: syntax error, unexpected '*', expecting ')' or ',' in ' void (* pattern_set) (GimpPatternSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:60: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint width,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:61: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint height,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:62: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gint bpp,' at 'gint'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:63: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const guchar *mask_data,' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:64: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' gboolean dialog_closing);' at 'gboolean'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:75: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:80: syntax error, unexpected identifier in 'GtkWidget * gimp_pattern_select_button_new (const gchar *title,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:81: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *pattern_name);' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:81: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *pattern_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:83: syntax error, unexpected '*', expecting ')' or ',' in 'const gchar * gimp_pattern_select_button_get_pattern (GimpPatternSelectButton *button);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:84: syntax error, unexpected '*', expecting ')' or ',' in 'void gimp_pattern_select_button_set_pattern (GimpPatternSelectButton *button,' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimppatternselectbutton.h:85: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *pattern_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:47: syntax error, unexpected identifier in ' GimpDialog parent_instance;' at 'GimpDialog'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:50: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:54: syntax error, unexpected identifier in ' GimpDialogClass parent_class;' at 'GimpDialogClass'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:56: syntax error, unexpected '*', expecting ')' or ',' in ' void (* selection_changed) (GimpProcBrowserDialog *dialog);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:57: syntax error, unexpected '*', expecting ')' or ',' in ' void (* row_activated) (GimpProcBrowserDialog *dialog);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:68: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:73: syntax error, unexpected identifier in 'GtkWidget * gimp_proc_browser_dialog_new (const gchar *title,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:74: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *role,' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:75: syntax error, unexpected identifier, expecting ',' or ';' in ' GimpHelpFunc help_func,' at 'help_func'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:77: syntax error, unexpected ELLIPSIS, expecting identifier or '(' or '*' in ' ...) __attribute__((__sentinel__));' at '...'
/home/jehan/dev/src/gimp-master/libgimp/gimpprocbrowserdialog.h:79: syntax error, unexpected '*', expecting ')' or ',' in 'gchar * gimp_proc_browser_dialog_get_selected (GimpProcBrowserDialog *dialog);' at '*'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:46: syntax error, unexpected identifier in ' GimpDialog parent_instance;' at 'GimpDialog'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:49: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:53: syntax error, unexpected identifier in ' GimpDialogClass parent_class;' at 'GimpDialogClass'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:64: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:69: syntax error, unexpected identifier in 'GtkWidget * gimp_procedure_dialog_new (GimpProcedure *procedure,' at 'GtkWidget'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:70: syntax error, unexpected typedef-name, expecting identifier or '(' or '*' in ' GimpProcedureConfig *config,' at 'GimpProcedureConfig'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:71: syntax error, unexpected CONST, expecting identifier or '(' or '*' in ' const gchar *title);' at 'const'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:71: syntax error, unexpected ')', expecting ',' or ';' in ' const gchar *title);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpproceduredialog.h:73: syntax error, unexpected '*', expecting ')' or ',' in 'gboolean gimp_procedure_dialog_run (GimpProcedureDialog *dialog);' at '*'cc1: warning: -Wformat-security ignored without -Wformat [-Wformat-security]
g-ir-scanner: link: cc -o /home/jehan/dev/build/gimp-master-meson/tmp-introspectdijh8gia/Gimp-3.0 /home/jehan/dev/build/gimp-master-meson/tmp-introspectdijh8gia/Gimp-3.0.o -L. -Wl,-rpath,. -Wl,--no-as-needed -L/home/jehan/dev/build/gimp-master-meson/libgimpthumb -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpthumb -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimpcolor -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpcolor -L/home/jehan/dev/build/gimp-master-meson/libgimpconfig -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpconfig -L/home/jehan/dev/build/gimp-master-meson/libgimpmath -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpmath -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimpcolor -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpcolor -L/home/jehan/dev/build/gimp-master-meson/libgimpconfig -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpconfig -L/home/jehan/dev/build/gimp-master-meson/libgimpmath -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpmath -L/home/jehan/dev/build/gimp-master-meson/libgimpmodule -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpmodule -L/home/jehan/dev/build/gimp-master-meson/libgimpwidgets -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpwidgets -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimpcolor -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpcolor -L/home/jehan/dev/build/gimp-master-meson/libgimpmath -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpmath -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimpconfig -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpconfig -L/home/jehan/dev/build/gimp-master-meson/libgimpcolor -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpcolor -L/home/jehan/dev/build/gimp-master-meson/libgimpmath -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpmath -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimp -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimp -L/home/jehan/dev/build/gimp-master-meson/libgimpbase -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpbase -L/home/jehan/dev/build/gimp-master-meson/libgimpcolor -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpcolor -L/home/jehan/dev/build/gimp-master-meson/libgimpconfig -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpconfig -L/home/jehan/dev/build/gimp-master-meson/libgimpmath -Wl,-rpath,/home/jehan/dev/build/gimp-master-meson/libgimpmath -L/home/jehan/.local/lib64 -Wl,-rpath,/home/jehan/.local/lib64 -L/home/jehan/.local/lib -Wl,-rpath,/home/jehan/.local/lib -lgimp-3.0 -lgimpui-3.0 -lgimpbase-3.0 -lgimpcolor-3.0 -lgimpconfig-3.0 -lgimpmath-3.0 -lgimpmodule-3.0 -lgimpthumb-3.0 -lgimpwidgets-3.0 -lgimpthumb-3.0 -lgegl-0.4 -lgegl-npd-0.4 -lgmodule-2.0 -lglib-2.0 -ljson-glib-1.0 -lgio-2.0 -lgobject-2.0 -lbabl-0.1 -lgexiv2 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lm -llcms2 -lgio-2.0 -lgobject-2.0 -Wl,--export-dynamic -lgmodule-2.0 -pthread -lglib-2.0
/home/jehan/dev/src/gimp-master/libgimp/gimpprocview.h:34: syntax error, unexpected ')', expecting ',' or ';' in 'GtkWidget * gimp_proc_view_new (const gchar *procedure_name);' at ')'
/home/jehan/dev/src/gimp-master/libgimp/gimpprogressbar.h:44: syntax error, unexpected identifier in ' GtkProgressBar parent_instance;' at 'GtkProgressBar'
/home/jehan/dev/src/gimp-master/libgimp/gimpprogressbar.h:48: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpprogressbar.h:52: syntax error, unexpected identifier in ' GtkProgressBarClass parent_class;' at 'GtkProgressBarClass'
/home/jehan/dev/src/gimp-master/libgimp/gimpprogressbar.h:59: syntax error, unexpected '}' in '};' at '}'
/home/jehan/dev/src/gimp-master/libgimp/gimpprogressbar.h:64: syntax error, unexpected identifier in 'GtkWidget * gimp_progress_bar_new (void);' at 'GtkWidget'
../../src/gimp-master/libgimpwidgets/gimpwidgets.c:47: Warning: Gimp: gimp_int_radio_group_new: argument radio_button_callback: Missing (scope) annotation for callback without GDestroyNotify (valid: call, async)
../../src/gimp-master/libgimp/gimpprocedureconfig.c:186: Warning: Gimp: gimp_procedure_config_get_procedure: return value: Missing (transfer) annotation
Also if you look at the references in the source code, you can really see these warnings are completely bogus. So it's not that meson makes the generation more verbose or anything. It's probably that meson (or our build code) does something wrong.
Additional information
I guess the next step would be to look at verbose modes (ninja -v
and make V=1
) and compare the commands actually run to see what is wrong with the command run in the meson build, then try to fix this.
I haven't even tried to do so because I am just doing too many things. @Salamandar, I think you are the best bet to help us here. Thanks!