Silence some warnings

One of them actually looks like it was a bug...

Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
Dirk Hohndel 2013-07-02 13:58:03 -07:00
parent be6e6638de
commit 6b08a6d428
2 changed files with 6 additions and 4 deletions

View file

@ -28,7 +28,10 @@
#include <libdivecomputer/version.h>
static struct graphics_context last_gc;
#if PRINT_IMPLEMENTED
static double plot_scale = SCALE_SCREEN;
#endif
struct text_render_options{
double size;
@ -122,6 +125,7 @@ bool ProfileGraphicsView::eventFilter(QObject* obj, QEvent* event)
return QGraphicsView::eventFilter(obj, event);
}
#if PRINT_IMPLEMENTED
static void plot_set_scale(scale_mode_t scale)
{
switch (scale) {
@ -134,6 +138,7 @@ static void plot_set_scale(scale_mode_t scale)
break;
}
}
#endif
void ProfileGraphicsView::showEvent(QShowEvent* event)
{