Skip to content

Commit 906fadb

Browse files
author
Mark Kendall
committed
OSX: Fix a compiler warning in new AppleRemote code.
1 parent 39c6183 commit 906fadb

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

mythtv/libs/libmythui/AppleRemote.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ static float GetATVversion()
139139

140140
sysctlbyname("hw.model", &hw_model, &len, NULL, 0);
141141

142+
float version = 0.0;
142143
if ( strstr(hw_model,"AppleTV1,1") )
143144
{
144145
FILE *inpipe;
145146
char linebuf[1000];
146-
float version = 0.0;
147147

148148
// Find the build version of the AppleTV OS
149149
inpipe = popen("sw_vers -buildVersion", "r");
@@ -160,10 +160,9 @@ static float GetATVversion()
160160
version = 2.3;
161161

162162
pclose(inpipe);
163-
164-
return version;
165163
}
166164
}
165+
return version;
167166
}
168167

169168
// protected

0 commit comments

Comments
 (0)