Skip to content

Commit

Permalink
#942 Warning on pragma c++20-compat
Browse files Browse the repository at this point in the history
  • Loading branch information
John Wellbelove committed Aug 6, 2024
1 parent f33b4d7 commit e39f5cb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/etl/private/diagnostic_cxx_20_compat_push.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SOFTWARE.
* This file is intended to evaluated multiple times by design.
*/

#if defined(__GNUC__) && !defined(__clang__) && !defined(__llvm__)
#if defined(__GNUC__) && (__GNUC__ >= 10) && !defined(__clang__) && !defined(__llvm__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wc++20-compat"
#endif
Expand Down
1 change: 1 addition & 0 deletions test/vs2022/etl.vcxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3092,6 +3092,7 @@
<ClInclude Include="..\..\include\etl\private\bitset_legacy.h" />
<ClInclude Include="..\..\include\etl\private\bitset_new.h" />
<ClInclude Include="..\..\include\etl\private\diagnostic_array_bounds_push.h" />
<ClInclude Include="..\..\include\etl\private\diagnostic_cxx_20_compat_push.h" />
<ClInclude Include="..\..\include\etl\private\diagnostic_deprecated_push.h" />
<ClInclude Include="..\..\include\etl\private\diagnostic_stringop_overread_push.h" />
<ClInclude Include="..\..\include\etl\private\diagnostic_uninitialized_push.h" />
Expand Down
3 changes: 3 additions & 0 deletions test/vs2022/etl.vcxproj.filters
Original file line number Diff line number Diff line change
Expand Up @@ -1410,6 +1410,9 @@
<ClInclude Include="..\..\include\etl\base64_decoder.h">
<Filter>ETL\Codecs</Filter>
</ClInclude>
<ClInclude Include="..\..\include\etl\private\diagnostic_cxx_20_compat_push.h">
<Filter>ETL\Private</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<ClCompile Include="..\test_string_char.cpp">
Expand Down

0 comments on commit e39f5cb

Please sign in to comment.