blob: e7e9d6d27ac571926e5c0f3f8e4fc400c76c4aca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
https://github.com/fritzing/fritzing-app/pull/4033
From: Brahmajit Das <brahmajit.xyz@gmail.com>
Date: Fri, 16 Jun 2023 06:29:28 +0000
Subject: [PATCH] clipablewire.cpp: Dropping usage of register storage class
The register storage class has been depreacted in C++14 and completely
removed in C++17. Thus resulting in buils errors such as:
clipablewire.cpp:55:2: error: ISO C++17 does not allow register storage class specifier [-Wregister]
Refer: https://en.cppreference.com/w/cpp/language/storage_duration
Bug: https://bugs.gentoo.org/898070
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
--- a/src/items/clipablewire.cpp
+++ b/src/items/clipablewire.cpp
@@ -50,7 +50,7 @@ static double connectorRectClipInset = 0.5;
int CrossingsTest( double pgon[][2], int numverts, double point[2] )
{
#ifdef WINDING
- register int crossings ;
+ int crossings ;
#endif
int j, yflag0, yflag1, inside_flag, xflag0 ;
double ty, tx, *vtx0, *vtx1 ;
|