2015/03/12 0:40 "Ryo Munakata" <ryomnk...@gmail.com>: > > On Wed, 11 Mar 2015 16:05:55 +0200 > Pekka Paalanen <ppaala...@gmail.com> wrote: > > > On Tue, 10 Mar 2015 11:34:45 +0900 > > Ryo Munakata <ryomnk...@gmail.com> wrote: > > > + > > > struct fbdev_compositor { > > > struct weston_compositor base; > > > uint32_t prev_state; > > > @@ -690,6 +692,9 @@ fbdev_output_destroy(struct weston_output *base) > > > gl_renderer->output_destroy(base); > > > } > > > > > > + if (output->device) > > > + free((char *)output->device); > > > > No need to cast. Also no need for 'if' because free(NULL) is perfectly > > legal. > > This cast causes a warning like: > src/compositor-fbdev.c:696:7: warning: passing argument 1 of ‘free’ discards ‘const’ qualifier from pointer target type > I think we need it for silencing the warning. > What do you think?
Typo. Correctly, free(output->device), which is without the cast, causes the waring above. Thanks.
_______________________________________________ wayland-devel mailing list wayland-devel@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/wayland-devel