summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2018-06-15 12:03:25 +0200
committerBastien Nocera <hadess@hadess.net>2018-06-15 12:03:25 +0200
commitcf1f15d921545d0a168024f7c6169344b4abc33a (patch)
tree33b27f5ce5bc0d4942458474d1586db9d96fee09
parentc410fa9f1d7454616978e0f09abc98027a822f44 (diff)
downloadtotem-cf1f15d921545d0a168024f7c6169344b4abc33a.tar.gz
data: Fix warnings about unused variables in mime-types arrays
-rwxr-xr-xdata/mime-type-include.sh14
1 files changed, 4 insertions, 10 deletions
diff --git a/data/mime-type-include.sh b/data/mime-type-include.sh
index a103688a6..06dc562fc 100755
--- a/data/mime-type-include.sh
+++ b/data/mime-type-include.sh
@@ -12,7 +12,7 @@ if [ x"$1" = "x--nautilus" ] ; then
echo "/* generated with mime-type-include.sh in the totem module, don't edit or"
echo " commit in the nautilus module without filing a bug against totem */"
- echo "static const char *video_mime_types[] = {"
+ echo "G_GNUC_UNUSED static const char *video_mime_types[] = {"
for i in $MIMETYPES ; do
echo_mime;
done
@@ -26,8 +26,7 @@ fi
MIMETYPES=`grep -v '^#' $1 | grep -v x-content/ | grep -v x-scheme-handler/`
echo "/* generated with mime-types-include.sh, don't edit */"
-echo "#ifdef WANT_MIME_TYPES"
-echo "static const gchar *mime_types[] = {"
+echo "G_GNUC_UNUSED static const gchar *mime_types[] = {"
for i in $MIMETYPES ; do
echo_mime;
@@ -35,28 +34,23 @@ done
echo "NULL"
echo "};"
-echo "#endif"
get_audio_mimetypes $1;
-echo "#ifdef WANT_AUDIO_MIME_TYPES"
-echo "static const gchar *audio_mime_types[] = {"
+echo "G_GNUC_UNUSED static const gchar *audio_mime_types[] = {"
for i in $MIMETYPES ; do
echo_mime;
done
echo "NULL"
echo "};"
-echo "#endif"
get_video_mimetypes $1;
-echo "#ifdef WANT_VIDEO_MIME_TYPES"
-echo "static const gchar *video_mime_types[] = {"
+echo "G_GNUC_UNUSED static const gchar *video_mime_types[] = {"
for i in $MIMETYPES ; do
echo_mime;
done
echo "NULL"
echo "};"
-echo "#endif"