Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
csst-pipeline
msc
sextractor
Commits
671a9ec1
Commit
671a9ec1
authored
Sep 07, 2022
by
Emmanuel Bertin
Browse files
Fixed printf() format warnings.
parent
0bd3938b
Changes
2
Show whitespace changes
Inline
Side-by-side
src/define.h
View file @
671a9ec1
...
@@ -167,7 +167,7 @@
...
@@ -167,7 +167,7 @@
#define QCALLOC(ptr, typ, nel) \
#define QCALLOC(ptr, typ, nel) \
{if (!(ptr = (typ *)calloc((size_t)(nel),sizeof(typ)))) \
{if (!(ptr = (typ *)calloc((size_t)(nel),sizeof(typ)))) \
{ \
{ \
sprintf(gstr, #ptr " (" #nel "=%
ll
d elements) " \
sprintf(gstr, #ptr " (" #nel "=%
z
d elements) " \
"at line %d in module " __FILE__ " !", \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
...
@@ -177,7 +177,7 @@
...
@@ -177,7 +177,7 @@
#define QMALLOC(ptr, typ, nel) \
#define QMALLOC(ptr, typ, nel) \
{if (!(ptr = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
{if (!(ptr = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
{ \
{ \
sprintf(gstr, #ptr " (" #nel "=%
ll
d elements) " \
sprintf(gstr, #ptr " (" #nel "=%
z
d elements) " \
"at line %d in module " __FILE__ " !", \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
...
@@ -187,7 +187,7 @@
...
@@ -187,7 +187,7 @@
#define QMALLOC16(ptr, typ, nel) \
#define QMALLOC16(ptr, typ, nel) \
{if (posix_memalign((void **)&ptr, 16, (size_t)(nel)*sizeof(typ))) \
{if (posix_memalign((void **)&ptr, 16, (size_t)(nel)*sizeof(typ))) \
{ \
{ \
sprintf(gstr, #ptr " (" #nel "=%
ll
d elements) " \
sprintf(gstr, #ptr " (" #nel "=%
z
d elements) " \
"at line %d in module " __FILE__ " !", \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
#define QREALLOC(ptr, typ, nel) \
#define QREALLOC(ptr, typ, nel) \
{if (!(ptr = (typ *)realloc(ptr, (size_t)(nel)*sizeof(typ))))\
{if (!(ptr = (typ *)realloc(ptr, (size_t)(nel)*sizeof(typ))))\
{ \
{ \
sprintf(gstr, #ptr " (" #nel "=%
ll
d elements) " \
sprintf(gstr, #ptr " (" #nel "=%
z
d elements) " \
"at line %d in module " __FILE__ " !", \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
...
@@ -208,7 +208,7 @@
...
@@ -208,7 +208,7 @@
{if (ptrin) \
{if (ptrin) \
{if (!(ptrout = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
{if (!(ptrout = (typ *)malloc((size_t)(nel)*sizeof(typ)))) \
{ \
{ \
sprintf(gstr, #ptrout " (" #nel "=%
ll
d elements) " \
sprintf(gstr, #ptrout " (" #nel "=%
z
d elements) " \
"at line %d in module " __FILE__ " !", \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE,"Could not allocate memory for ",gstr);\
error(EXIT_FAILURE,"Could not allocate memory for ",gstr);\
...
...
src/fft.h
View file @
671a9ec1
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
*
*
* This file part of: SExtractor
* This file part of: SExtractor
*
*
* Copyright: (C) 2007-20
17
IAP/CNRS/
UPMC
* Copyright: (C) 2007-20
22
IAP/CNRS/
SorbonneU
*
*
* License: GNU General Public License
* License: GNU General Public License
*
*
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
* 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 SExtractor. If not, see <http://www.gnu.org/licenses/>.
* along with SExtractor. If not, see <http://www.gnu.org/licenses/>.
*
*
* Last modified:
19
/0
6
/20
17
* Last modified:
07
/0
9
/20
22
*
*
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
*%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%*/
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
#define QFFTWF_MALLOC(ptr, typ, nel) \
#define QFFTWF_MALLOC(ptr, typ, nel) \
{if (!(ptr = (typ *)fftwf_malloc((size_t)(nel)*sizeof(typ)))) \
{if (!(ptr = (typ *)fftwf_malloc((size_t)(nel)*sizeof(typ)))) \
{ \
{ \
sprintf(gstr, #ptr " (" #nel "=%
ll
d elements) " \
sprintf(gstr, #ptr " (" #nel "=%
z
d elements) " \
"at line %d in module " __FILE__ " !", \
"at line %d in module " __FILE__ " !", \
(size_t)(nel)*sizeof(typ), __LINE__); \
(size_t)(nel)*sizeof(typ), __LINE__); \
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
error(EXIT_FAILURE, "Could not allocate memory for ", gstr);\
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment