X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=blobdiff_plain;f=tests%2Funit%2Ftest_build.c;h=99ddbcdd2ac4b9dfa3f84a563e5fa3eb90c0cdea;hp=f6b667ce2b3d9ab08dc64704337f9960d923ab68;hb=HEAD;hpb=2d466a6397dbc7af397d0fc10e327cc6cac76a5a diff --git a/tests/unit/test_build.c b/tests/unit/test_build.c index f6b667c..99ddbcd 100644 --- a/tests/unit/test_build.c +++ b/tests/unit/test_build.c @@ -1,20 +1,6 @@ -/* - * Copyright 2021 Simon Marchi - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program 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 General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ +// SPDX-FileCopyrightText: 2021 Simon Marchi +// +// SPDX-License-Identifier: GPL-2.0-or-later /* * This file is meant to verify that headers are compatible with both C and @@ -52,7 +38,6 @@ #include #include #include -#include #include #include #include @@ -129,10 +114,10 @@ void test_build_rcu_dereference(void) static struct a_clear_struct *clear = NULL; static struct a_clear_struct *const clear_const = NULL; - rcu_dereference(opaque); - rcu_dereference(opaque_const); - rcu_dereference(clear); - rcu_dereference(clear_const); + (void) rcu_dereference(opaque); + (void) rcu_dereference(opaque_const); + (void) rcu_dereference(clear); + (void) rcu_dereference(clear_const); } int main(void)