mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
be6e6638de
commit
6b08a6d428
2 changed files with 6 additions and 4 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue