Skip to content

Commit

Permalink
Fix compiler warnings (#11984)
Browse files Browse the repository at this point in the history
- Define OpenCL version in ParModelica to get rid of warnings about
  deprecated functions.
- Use QPalette::Window instead of deprecated QPalette::Background.
  • Loading branch information
perost committed Feb 13, 2024
1 parent 5a46eec commit 6cb1063
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -43,6 +43,8 @@
#ifndef _OMC_OCL_COMMON_HEADER
#define _OMC_OCL_COMMON_HEADER

#define CL_TARGET_OPENCL_VERSION 120

#include <stdio.h>
#ifdef __APPLE__
#include <OpenCL/cl.h>
Expand All @@ -53,8 +55,6 @@
#include <stdarg.h>
#include <sys/time.h>



#define MAX_DEVICE 4
#define SHOW_DEVICE_SELECTION
// #define SHOW_ARG_SET_ERRORS
Expand Down
2 changes: 1 addition & 1 deletion OMPlot/OMPlot/OMPlotGUI/PlotWindow.cpp
Expand Up @@ -64,7 +64,7 @@ PlotWindow::PlotWindow(QStringList arguments, QWidget *parent, bool isInteractiv
{
/* set the widget background white. so that the plot is more useable in books and publications. */
QPalette p(palette());
p.setColor(QPalette::Background, Qt::white);
p.setColor(QPalette::Window, Qt::white);
setAutoFillBackground(true);
setPalette(p);
// setup the main window widget
Expand Down

0 comments on commit 6cb1063

Please sign in to comment.