mirror of
https://github.com/cosmo-sims/monofonIC.git
synced 2024-09-19 17:03:45 +02:00
compile-time printf-warnings
This commit is contained in:
parent
69f8b1243c
commit
961f79188f
1 changed files with 4 additions and 4 deletions
|
@ -1,17 +1,17 @@
|
||||||
// This file is part of monofonIC (MUSIC2)
|
// This file is part of monofonIC (MUSIC2)
|
||||||
// A software package to generate ICs for cosmological simulations
|
// A software package to generate ICs for cosmological simulations
|
||||||
// Copyright (C) 2020 by Oliver Hahn & Michael Michaux (this file)
|
// Copyright (C) 2020 by Oliver Hahn & Michael Michaux (this file)
|
||||||
//
|
//
|
||||||
// monofonIC is free software: you can redistribute it and/or modify
|
// monofonIC is free software: you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU General Public License as published by
|
// it under the terms of the GNU General Public License as published by
|
||||||
// the Free Software Foundation, either version 3 of the License, or
|
// the Free Software Foundation, either version 3 of the License, or
|
||||||
// (at your option) any later version.
|
// (at your option) any later version.
|
||||||
//
|
//
|
||||||
// monofonIC is distributed in the hope that it will be useful,
|
// monofonIC is distributed in the hope that it will be useful,
|
||||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
// GNU General Public License for more details.
|
// GNU General Public License for more details.
|
||||||
//
|
//
|
||||||
// You should have received a copy of the GNU General Public License
|
// You should have received a copy of the GNU General Public License
|
||||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#pragma once
|
#pragma once
|
||||||
|
@ -127,7 +127,7 @@ public:
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
inline void Print(const char *str, ...) {
|
inline void Print(const char *str, ...) __attribute__ ((format (printf, 2, 3))) {
|
||||||
char out[1024];
|
char out[1024];
|
||||||
va_list argptr;
|
va_list argptr;
|
||||||
va_start(argptr, str);
|
va_start(argptr, str);
|
||||||
|
|
Loading…
Reference in a new issue