summaryrefslogtreecommitdiff
path: root/ui/profile.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2012-12-28 14:38:02 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2012-12-28 14:38:02 +0000
commitcdc79cd5e95bbe195807fb45b5040cc9b65ba513 (patch)
tree15bd8df5b6c3836d4748d15e6072683050916625 /ui/profile.c
parentc4650d85c64c417547ed96fcd36316d3896ea1dc (diff)
downloadwireshark-cdc79cd5e95bbe195807fb45b5040cc9b65ba513.tar.gz
Fix [ 76%] Building C object ui/CMakeFiles/ui.dir/profile.c.o ui/profile.c: In function ‘init_profile_list’: ui/profile.c:194:20: error: variable ‘fl_entry’ set but not used [-Werror=unused-but-set-variable] cc1: all warnings being treated as errors
svn path=/trunk/; revision=46824
Diffstat (limited to 'ui/profile.c')
-rw-r--r--ui/profile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/profile.c b/ui/profile.c
index 28cf03ac9b..cb27885ba4 100644
--- a/ui/profile.c
+++ b/ui/profile.c
@@ -191,7 +191,7 @@ init_profile_list(void)
{
WS_DIR *dir; /* scanned directory */
WS_DIRENT *file; /* current file */
- GList *fl_entry;
+ /*GList *fl_entry;*/
/*profile_def *profile;*/
const gchar *profiles_dir, *name;
gchar *filename;
@@ -199,7 +199,7 @@ init_profile_list(void)
empty_profile_list(TRUE);
/* Default entry */
- fl_entry = add_to_profile_list(DEFAULT_PROFILE, DEFAULT_PROFILE, PROF_STAT_DEFAULT, FALSE, FALSE);
+ /*fl_entry =*/ add_to_profile_list(DEFAULT_PROFILE, DEFAULT_PROFILE, PROF_STAT_DEFAULT, FALSE, FALSE);
/* Local (user) profiles */
profiles_dir = get_profiles_dir();
@@ -209,7 +209,7 @@ init_profile_list(void)
filename = g_strdup_printf ("%s%s%s", profiles_dir, G_DIR_SEPARATOR_S, name);
if (test_for_directory(filename) == EISDIR) {
- fl_entry = add_to_profile_list(name, name, PROF_STAT_EXISTS, FALSE, FALSE);
+ /*fl_entry =*/ add_to_profile_list(name, name, PROF_STAT_EXISTS, FALSE, FALSE);
}
g_free (filename);
}
@@ -224,7 +224,7 @@ init_profile_list(void)
filename = g_strdup_printf ("%s%s%s", profiles_dir, G_DIR_SEPARATOR_S, name);
if (test_for_directory(filename) == EISDIR) {
- fl_entry = add_to_profile_list(name, name, PROF_STAT_EXISTS, TRUE, TRUE);
+ /*fl_entry =*/ add_to_profile_list(name, name, PROF_STAT_EXISTS, TRUE, TRUE);
/*profile = (profile_def *) fl_entry->data;*/
}
g_free (filename);