diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c1c843470a159bb8ef9f28cfd4b9e0e27f852933..2d4ca660a99737f7e1fe27dc9ecdb5ca58f4a363 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -6,8 +6,30 @@ stages:
   - check_if_dockerfile_updated
   - build_docker_image
   - build
-  - LCG
 ########################################################################
+Fedora40-GNU-latest:
+  only:
+    variables:
+     - $CI_SERVER_HOST=="gitlab.cern.ch"
+  image: gitlab-registry.cern.ch/hepmc/hepmc3:Fedora_40
+  tags:
+    - k8s-cvmfs
+  stage: build
+  when: manual
+  script:
+    - |
+      dnf copr -y enable -y jwakely/gcc-latest
+      dnf install -y  gcc-latest
+      export PATH=/opt/gcc-latest/bin:$PATH
+      export LD_LIBRARY_PATH=/opt/gcc-latest/lib:/opt/gcc-latest/lib64:$LD_LIBRARY_PATH
+      mkdir BUILD
+      cd BUILD
+      set -x
+      cmake .. -DCMAKE_CXX_FLAGS="-Wpedantic -Wall -Wextra -Werror=lto-type-mismatch -Werror=strict-aliasing -Werror=odr -flto" -DHEPMC3_TEST_VALGRIND=ON  -DHEPMC3_ENABLE_PROTOBUFIO:BOOL=ON -DHEPMC3_ENABLE_ROOTIO:BOOL=OFF -DHEPMC3_BUILD_EXAMPLES:BOOL=ON -DHEPMC3_ENABLE_TEST:BOOL=ON -DHEPMC3_TEST_VALGRIND:BOOL=ON -DHEPMC3_ENABLE_PYTHON:BOOL=ON -DHEPMC3_INSTALL_INTERFACES:BOOL=ON -DCMAKE_EXPORT_COMPILE_COMMANDS:BOOL=ON -DHEPMC3_BUILD_DOCS:BOOL=OFF
+      set +x
+      make -j $(nproc)
+      make -j $(nproc) install
+      ctest -j 5 --output-on-failure 
 
 LCG_x86_64-alma9:
   only:
@@ -16,7 +38,7 @@ LCG_x86_64-alma9:
   image: gitlab-registry.cern.ch/sft/docker/alma9-core:latest
   tags:
     - k8s-cvmfs
-  stage: LCG
+  stage: build
   script:
     - |
       export ATLAS_LOCAL_ROOT_BASE=/cvmfs/atlas.cern.ch/repo/ATLASLocalRootBase
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0b54eaafe64c91048eca8c65e6fc1925efe05cb0..6259ea79e8e8c11475910a781d4aef804797a6be 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -185,8 +185,8 @@ set(PGI_CXX_FLAGS_TO_CHECK "-Wc,--pending_instantiations=0;-noswitcherror;--diag
 set(NVHPC_CXX_FLAGS_TO_CHECK "-Wc,--pending_instantiations=0;-noswitcherror;--diag_suppress=code_is_unreachable;--diag_suppress=offset_in_non_POD_nonstandard;--diag_suppress=set_but_not_used")
 set(Intel_CXX_FLAGS_TO_CHECK "-diag-disable=2196")
 set(IntelLLVM_CXX_FLAGS_TO_CHECK "-diag-disable=2196;-Wno-unused-command-line-argument")
-set(GNU_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
-set(Clang_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
+set(GNU_CXX_FLAGS_TO_CHECK "-Wno-unused-parameter;-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
+set(Clang_CXX_FLAGS_TO_CHECK "-Wno-unused-parameter;-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
 set(AppleClang_CXX_FLAGS_TO_CHECK "-Wno-strict-aliasing;-Wno-unused-command-line-argument;-Wno-gnu-zero-variadic-macro-arguments;-Wno-deprecated-declarations")
 set(XL_CXX_FLAGS_TO_CHECK "-qsuppress=1500-030")
 foreach(fl ${${CMAKE_CXX_COMPILER_ID}_CXX_FLAGS_TO_CHECK})