Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/pull-request/#777-Allow-Building…
Browse files Browse the repository at this point in the history
…-Tests-as-Submodule-and-GCC-less-than-11' into development
  • Loading branch information
John Wellbelove committed Oct 27, 2023
2 parents e8eeeba + 98ebaff commit 39c3ca8
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 19 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/clang-syntax-checks.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: clang syntax checks
on:
push:
branches: [ master, development ]
branches: [ master, development, pull-request/* ]
pull_request:
branches: [ master ]
branches: [ master, pull-request/* ]

jobs:
build-clang-cpp03-linux-STL:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/clang.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: clang
on:
push:
branches: [ master, development ]
branches: [ master, development, pull-request/* ]
pull_request:
branches: [ master ]
branches: [ master, pull-request/* ]

jobs:

build-clang-cpp11-linux-stl:
name: Clang C++11 Linux - STL
runs-on: ${{ matrix.os }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gcc-syntax-checks.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: gcc syntax checks
on:
push:
branches: [ master, development ]
branches: [ master, development, pull-request/* ]
pull_request:
branches: [ master ]
branches: [ master, pull-request/* ]

jobs:
build-gcc-cpp03-linux-STL:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gcc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: gcc
on:
push:
branches: [ master, development ]
branches: [ master, development, pull-request/* ]
pull_request:
branches: [ master ]
branches: [ master, pull-request/* ]

jobs:
build-gcc-cpp11-linux-stl:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/msvc.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: msvc
on:
push:
branches: [ master, development ]
branches: [ master, development, pull-request/* ]
pull_request:
branches: [ master ]
branches: [ master, pull-request/* ]

jobs:
build-windows-msvc-stl:
Expand Down
11 changes: 6 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ if(${CMAKE_PROJECT_NAME} STREQUAL ${PROJECT_NAME})
"${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/etl DESTINATION include)

if (BUILD_TESTS)
enable_testing()
add_subdirectory(test)
endif()

endif()

if (BUILD_TESTS)
enable_testing()
add_subdirectory(test)
endif()
8 changes: 4 additions & 4 deletions include/etl/private/diagnostic_stringop_overread_push.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ SOFTWARE.
* This file is intended to evaluated multiple times by design.
*/

#if defined(__GNUC__) && !defined(__clang__) && !defined(__llvm__)
#pragma GCC diagnostic push
#if defined(__GNUC__) && (__GNUC__ >= 11) && !defined(__clang__) && !defined(__llvm__)
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-overread"
#endif

#if defined(__clang__) || defined(__llvm__)
#pragma clang diagnostic push
#endif
#pragma clang diagnostic push
#endif

0 comments on commit 39c3ca8

Please sign in to comment.