/** * @file aka_warning.hh * * @author Nicolas Richart * * @date creation: Mon Nov 14 2016 * @date last modification: Fri Dec 02 2016 * * @brief file to include to remove some warnings * * * Copyright (©) 2016-2018 EPFL (Ecole Polytechnique Fédérale de Lausanne) * Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides) * * Akantu is free software: you can redistribute it and/or modify it under the * terms of the GNU Lesser General Public License as published by the Free * Software Foundation, either version 3 of the License, or (at your option) any * later version. * * Akantu is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more * details. * * You should have received a copy of the GNU Lesser General Public License * along with Akantu. If not, see . * */ /** AKANTU_WARNING_IGNORE_UNUSED_PARAMETER AKANTU_WARNING_IGNORE_VARIADIC_MACRO_ARGUMENTS **/ // --- Intel warnings ---------------------------------------------------------- #if defined(__INTEL_COMPILER) # if defined(AKANTU_WARNING_IGNORE_UNUSED_PARAMETER) # endif // --- Clang Warnings ---------------------------------------------------------- #elif defined(__clang__) // test clang to be sure that when we test for gnu it // is only gnu # pragma clang diagnostic push # if defined(AKANTU_WARNING_IGNORE_UNUSED_PARAMETER) # pragma clang diagnostic ignored "-Wunused-parameter" # endif # if defined(AKANTU_WARNING_IGNORE_VARIADIC_MACRO_ARGUMENTS) # pragma clang diagnostic ignored "-Wgnu-zero-variadic-macro-arguments" # endif // --- GCC warnings ------------------------------------------------------------ #elif (defined(__GNUC__) || defined(__GNUG__)) # define GCC_VERSION \ (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) # if GCC_VERSION > 40600 # pragma GCC diagnostic push # endif # if defined(AKANTU_WARNING_IGNORE_UNUSED_PARAMETER) # pragma GCC diagnostic ignored "-Wunused-parameter" # endif # if defined(AKANTU_WARNING_IGNORE_VARIADIC_MACRO_ARGUMENTS) # pragma GCC diagnostic ignored "-Wvariadic-macros" # pragma GCC diagnostic ignored "-Wpedantic" # endif #endif