Silence a compiler warning
authorMatthias Clasen <mclasen@redhat.com>
Fri, 13 Jan 2023 16:08:41 +0000 (11:08 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 13 Jan 2023 17:07:40 +0000 (12:07 -0500)
Clang was complaining that we never use the
value stored in mime_type. Just don't store it,
we are only interested in the side-effect
(interning the string).

gdk/x11/gdkselectionoutputstream-x11.c

index c489b2b46b8e79125a0e48976ca22bb53d212c45..76815bee65ccae6366370508dcb19a7eff4b5dd5 100644 (file)
@@ -982,7 +982,7 @@ gdk_x11_selection_output_streams_request (GdkDisplay                   *display,
               GOutputStream *stream;
 
               if (special_targets[i].mime_type)
-                mime_type = gdk_intern_mime_type (special_targets[i].mime_type);
+                gdk_intern_mime_type (special_targets[i].mime_type);
               stream = gdk_x11_selection_output_stream_new (display,
                                                             notify,
                                                             requestor,