Skip to content

Commit bee4d80

Browse files
authored
Merge c5c04bb into 1492b3d
2 parents 1492b3d + c5c04bb commit bee4d80

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/ioc/reftrackioc.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ void refshow(int lvl)
4848
// No locking. assume only interactive iocsh use
4949
static epics::RefSnapshot savedSnap;
5050

51+
#if __GNUC__ == 12
52+
// silence false (?) warning that shows in gcc 12 only
53+
#pragma GCC diagnostic push
54+
#pragma GCC diagnostic ignored "-Wdangling-pointer"
55+
#endif
5156
void refsave()
5257
{
5358
try {
@@ -57,6 +62,9 @@ void refsave()
5762
savedSnap.swap(snap);
5863
}CATCH()
5964
}
65+
#if __GNUC__ == 12
66+
#pragma GCC diagnostic pop
67+
#endif
6068

6169
void refdiff(int lvl)
6270
{

0 commit comments

Comments
 (0)