uppsrc: Fixed new clang warnings

This commit is contained in:
Mirek Fidler 2025-09-30 10:27:39 +02:00
parent e023fcad2a
commit eaf8112b15
3 changed files with 6 additions and 4 deletions

View file

@ -24,7 +24,7 @@ namespace Upp {
struct Win32PrintDlg_ : PRINTDLG {
Win32PrintDlg_() {
memset(this, 0, sizeof(PRINTDLG));
memset((void *)this, 0, sizeof(PRINTDLG));
lStructSize = sizeof(PRINTDLG);
}
~Win32PrintDlg_() {

View file

@ -392,7 +392,7 @@ void Pdb::VisualDisplay::Paint(Draw& w, const Rect& r, const Value& q,
else
if(*p.text == '\2') { // Image support
PrettyImage img;
memcpy(&img, ~p.text + 1, sizeof(PrettyImage));
memcpy((void *)&img, ~p.text + 1, sizeof(PrettyImage));
Rect r = RectC(x, y, sz.cx, sz.cy);
Image m = DbgImg::Img();
if(img.size.cx < 0 || img.size.cx > 10000 || img.size.cy < 0 || img.size.cy > 10000)

View file

@ -14,8 +14,10 @@ struct MyApp : public TopWindow {
p.Move(10, 10);
p.Arc(10, 10, 0.1, M_PI, M_PI);
// p.RoundedRectangle(2, 2, 100, 100, 0.1)
// p.Stroke(5, Blue());
p.Stroke(0.1, Blue());
p.Stroke(5, Blue());
// p.Stroke(0.1, Blue());
p.Circle(20, 20, 10).Stroke(1, Blue());
}
};