Skip to content

Commit a032c18

Browse files
wxmerktjcarpent
authored andcommitted
user-type: Ignore cast warnings
1 parent 41fcb5c commit a032c18

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/eigenpy/user-type.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,11 @@ namespace eigenpy
1919
{
2020
static To run(const From & from)
2121
{
22+
#pragma GCC diagnostic push
23+
#pragma GCC diagnostic ignored "-Wconversion"
24+
#pragma GCC diagnostic ignored "-Wfloat-conversion"
2225
return static_cast<To>(from);
26+
#pragma GCC diagnostic pop
2327
}
2428

2529
};

0 commit comments

Comments
 (0)