Commit 552917d9 authored by Erik de Castro Lopo's avatar Erik de Castro Lopo
Browse files

src/share/grabbag/replaygain.c : Fix compiler warnings.

Gcc 4.8 has a new warning about use of un-initialized data. In particular
this new warning can detect if an automatic variable is defined in one function
and then passed to another and used before it is initialized.
parent 355f4aae
......@@ -503,7 +503,7 @@ static const char *store_to_file_post_(const char *filename, FLAC__Metadata_Chai
const char *grabbag__replaygain_store_to_file(const char *filename, float album_gain, float album_peak, float title_gain, float title_peak, FLAC__bool preserve_modtime)
{
FLAC__Metadata_Chain *chain;
FLAC__StreamMetadata *block;
FLAC__StreamMetadata *block = NULL;
const char *error;
if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
......@@ -523,7 +523,7 @@ const char *grabbag__replaygain_store_to_file(const char *filename, float album_
const char *grabbag__replaygain_store_to_file_reference(const char *filename, FLAC__bool preserve_modtime)
{
FLAC__Metadata_Chain *chain;
FLAC__StreamMetadata *block;
FLAC__StreamMetadata *block = NULL;
const char *error;
if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
......@@ -543,7 +543,7 @@ const char *grabbag__replaygain_store_to_file_reference(const char *filename, FL
const char *grabbag__replaygain_store_to_file_album(const char *filename, float album_gain, float album_peak, FLAC__bool preserve_modtime)
{
FLAC__Metadata_Chain *chain;
FLAC__StreamMetadata *block;
FLAC__StreamMetadata *block = NULL;
const char *error;
if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
......@@ -563,7 +563,7 @@ const char *grabbag__replaygain_store_to_file_album(const char *filename, float
const char *grabbag__replaygain_store_to_file_title(const char *filename, float title_gain, float title_peak, FLAC__bool preserve_modtime)
{
FLAC__Metadata_Chain *chain;
FLAC__StreamMetadata *block;
FLAC__StreamMetadata *block = NULL;
const char *error;
if(0 != (error = store_to_file_pre_(filename, &chain, &block)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment