Fixes for -Wwrite-strings
authorBenjamin Otte <otte@redhat.com>
Wed, 3 Mar 2010 10:45:38 +0000 (11:45 +0100)
committerBenjamin Otte <otte@redhat.com>
Wed, 10 Mar 2010 19:50:10 +0000 (20:50 +0100)
commita9d1a493a79d72ac5fbe578bc8160f0637c69619
treed61e1b4b2a08c54e492554ad322b844d338b0f43
parent22f87a529f731b62dc84bf36b77ecf1ae252ef76
Fixes for -Wwrite-strings

This changes some APIs in compatible ways:
- Some functions now take "const char *" arguments, not "char *"
- Some structs now have "conts char *" members, not "char *"
The changes may cause warnings when compiling with the right warning
flags. You've been warned.

Also adds -Wwrite-strings as a warning flag in configure.ac.

https://bugzilla.gnome.org/show_bug.cgi?id=611692
44 files changed:
configure.ac
gst/gst.c
gst/gstbufferlist.c
gst/gstdebugutils.c
gst/gstformat.c
gst/gstformat.h
gst/gstinfo.c
gst/gstminiobject.c
gst/gstobject.c
gst/gstobject.h
gst/gstplugin.c
gst/gstplugin.h
gst/gstpluginloader.c
gst/gstquery.c
gst/gstquery.h
gst/gststructure.c
gst/gsttrace.c
gst/gsttrace.h
gst/gstvalue.c
libs/gst/check/gstcheck.c
libs/gst/check/gstcheck.h
libs/gst/controller/gstcontroller.c
libs/gst/controller/gstcontroller.h
libs/gst/controller/gsthelper.c
libs/gst/helpers/gst-plugin-scanner.c
plugins/elements/gstfdsink.c
plugins/elements/gstfdsrc.c
plugins/elements/gstfilesink.c
plugins/elements/gstfilesrc.c
tests/benchmarks/controller.c
tests/benchmarks/mass-elements.c
tests/check/elements/tee.c
tests/check/gst/gstbufferlist.c
tests/check/gst/gstpad.c
tests/check/gst/gstpreset.c
tests/check/gst/gststructure.c
tests/check/gst/gsttag.c
tests/check/gst/gstvalue.c
tests/check/libs/controller.c
tests/check/libs/typefindhelper.c
tests/check/pipelines/cleanup.c
tests/check/pipelines/parse-launch.c
tests/check/pipelines/simple-launch-lines.c
tools/gst-inspect.c