mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-26 15:02:56 +02:00
fix segfault from - glcd: fix warning: statement is a reference, not call
This commit is contained in:
@@ -137,7 +137,6 @@ cGLCD::cGLCD()
|
||||
InitAnalogClock();
|
||||
InitDigitalClock();
|
||||
InitSimpleClock();
|
||||
InitWeather();
|
||||
|
||||
Update();
|
||||
}
|
||||
@@ -653,6 +652,8 @@ void cGLCD::updateFonts()
|
||||
}
|
||||
}
|
||||
|
||||
WeatherUpdateFonts();
|
||||
|
||||
fonts_initialized = true;
|
||||
}
|
||||
|
||||
|
@@ -51,11 +51,6 @@ int weather_fontsize;
|
||||
int standby_weather_percent;
|
||||
int standby_weather_fontsize;
|
||||
|
||||
void InitWeather()
|
||||
{
|
||||
WeatherUpdateFonts();
|
||||
}
|
||||
|
||||
void WeatherUpdateFonts()
|
||||
{
|
||||
cGLCD *cglcd = cGLCD::getInstance();
|
||||
|
@@ -28,7 +28,6 @@
|
||||
#pragma GCC diagnostic warning "-Wunused-parameter"
|
||||
#include "glcd.h"
|
||||
|
||||
void InitWeather();
|
||||
void WeatherUpdateFonts();
|
||||
void RenderWeather(int cx, int cy, int nx, int ny, bool standby);
|
||||
void ShowWeather(bool standby);
|
||||
|
Reference in New Issue
Block a user