mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 07:23:09 +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();
|
InitAnalogClock();
|
||||||
InitDigitalClock();
|
InitDigitalClock();
|
||||||
InitSimpleClock();
|
InitSimpleClock();
|
||||||
InitWeather();
|
|
||||||
|
|
||||||
Update();
|
Update();
|
||||||
}
|
}
|
||||||
@@ -653,6 +652,8 @@ void cGLCD::updateFonts()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
WeatherUpdateFonts();
|
||||||
|
|
||||||
fonts_initialized = true;
|
fonts_initialized = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -51,11 +51,6 @@ int weather_fontsize;
|
|||||||
int standby_weather_percent;
|
int standby_weather_percent;
|
||||||
int standby_weather_fontsize;
|
int standby_weather_fontsize;
|
||||||
|
|
||||||
void InitWeather()
|
|
||||||
{
|
|
||||||
WeatherUpdateFonts();
|
|
||||||
}
|
|
||||||
|
|
||||||
void WeatherUpdateFonts()
|
void WeatherUpdateFonts()
|
||||||
{
|
{
|
||||||
cGLCD *cglcd = cGLCD::getInstance();
|
cGLCD *cglcd = cGLCD::getInstance();
|
||||||
|
@@ -28,7 +28,6 @@
|
|||||||
#pragma GCC diagnostic warning "-Wunused-parameter"
|
#pragma GCC diagnostic warning "-Wunused-parameter"
|
||||||
#include "glcd.h"
|
#include "glcd.h"
|
||||||
|
|
||||||
void InitWeather();
|
|
||||||
void WeatherUpdateFonts();
|
void WeatherUpdateFonts();
|
||||||
void RenderWeather(int cx, int cy, int nx, int ny, bool standby);
|
void RenderWeather(int cx, int cy, int nx, int ny, bool standby);
|
||||||
void ShowWeather(bool standby);
|
void ShowWeather(bool standby);
|
||||||
|
Reference in New Issue
Block a user