Skip to content

gtkprintbackendlpr.c: Add #include "gtkprivate.h"

Kjell Ahlstedt requested to merge kjellahl/gtkprintbackendlpr into main

Necessary after GTK_NOTE was replaced by GTK_DEBUG. GTK_DEBUG is defined in gtk/gtkprivate.h. GTK_NOTE was defined in gtk/gtkdebug.h.

Result without the #include:

../../gnome/gtk/modules/printbackends/gtkprintbackendlpr.c:158:3: warning: implicit declaration of function ‘GTK_DEBUG’ [-Wimplicit-function-declaration]
  158 |   GTK_DEBUG (PRINTING, "LPR Backend: Writing %i byte chunk to temp file", length);
      |   ^~~~~~~~~
../../gnome/gtk/modules/printbackends/gtkprintbackendlpr.c:158:3: warning: nested extern declaration of ‘GTK_DEBUG’ [-Wnested-externs]
../../gnome/gtk/modules/printbackends/gtkprintbackendlpr.c:158:14: error: ‘PRINTING’ undeclared (first use in this function)
  158 |   GTK_DEBUG (PRINTING, "LPR Backend: Writing %i byte chunk to temp file", length);
      |              ^~~~~~~~
../../gnome/gtk/modules/printbackends/gtkprintbackendlpr.c:158:14: note: each undeclared identifier is reported only once for each function it appears in
../../gnome/gtk/modules/printbackends/gtkprintbackendlpr.c: In function ‘lpr_write’:
../../gnome/gtk/modules/printbackends/gtkprintbackendlpr.c:274:22: error: ‘PRINTING’ undeclared (first use in this function)
  274 |           GTK_DEBUG (PRINTING, "LPR Backend: %s", error->message);
      |                      ^~~~~~~~
[670/1058] Compiling C object modules/media/libmedia-gstreamer.so.p/gtkgstsink.c.o
ninja: build stopped: subcommand failed.

Merge request reports