*: use gcc.h macros instead of GLib
This commit is contained in:
@@ -38,8 +38,8 @@
|
||||
#include <unistd.h>
|
||||
|
||||
static void
|
||||
my_log_func(const gchar *log_domain, G_GNUC_UNUSED GLogLevelFlags log_level,
|
||||
const gchar *message, G_GNUC_UNUSED gpointer user_data)
|
||||
my_log_func(const gchar *log_domain, gcc_unused GLogLevelFlags log_level,
|
||||
const gchar *message, gcc_unused gpointer user_data)
|
||||
{
|
||||
if (log_domain != NULL)
|
||||
g_printerr("%s: %s\n", log_domain, message);
|
||||
@@ -119,7 +119,7 @@ int main(int argc, char **argv)
|
||||
return 2;
|
||||
}
|
||||
|
||||
G_GNUC_UNUSED ssize_t ignored = write(1, output, length);
|
||||
gcc_unused ssize_t ignored = write(1, output, length);
|
||||
}
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
|
Reference in New Issue
Block a user