Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
V
vlkb-soda
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ViaLactea
vlkb-soda
Commits
ac966c57
Commit
ac966c57
authored
1 month ago
by
Robert Butora
Browse files
Options
Downloads
Patches
Plain Diff
fix warnings: long-int mismatch on card-ix & unused func-params eliminated
parent
632b868c
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
data-access/engine/src/vlkb/src/imcopydav.cpp
+9
-9
9 additions, 9 deletions
data-access/engine/src/vlkb/src/imcopydav.cpp
with
9 additions
and
9 deletions
data-access/engine/src/vlkb/src/imcopydav.cpp
+
9
−
9
View file @
ac966c57
...
@@ -91,7 +91,7 @@ class dav
...
@@ -91,7 +91,7 @@ class dav
{
{
*
numkeys
=
endcard_cix
;
*
numkeys
=
endcard_cix
;
long
rem
=
(
endcard_cix
+
1
)
%
36
;
int
rem
=
(
endcard_cix
+
1
)
%
36
;
*
morekeys
=
(
rem
==
0
)
?
0
:
(
36
-
rem
);
*
morekeys
=
(
rem
==
0
)
?
0
:
(
36
-
rem
);
return
*
status
;
return
*
status
;
}
}
...
@@ -123,7 +123,7 @@ class dav
...
@@ -123,7 +123,7 @@ class dav
if
(
0
==
string
(
lkeyname
).
compare
(
string
{
keyname
}))
if
(
0
==
string
(
lkeyname
).
compare
(
string
{
keyname
}))
{
{
fits_parse_value
(
card
,
lvalue
,
comment
,
status
);
fits_parse_value
(
card
,
lvalue
,
comment
,
status
);
if
((
lvalue
!=
NULL
)
&&
(
*
status
==
0
))
if
(
/*
(lvalue!=NULL) &&
*/
(
*
status
==
0
))
{
{
switch
(
datatype
)
switch
(
datatype
)
{
{
...
@@ -142,9 +142,9 @@ class dav
...
@@ -142,9 +142,9 @@ class dav
// 'The fpixel and lpixel parameters are integer arrays which specify the starting
// 'The fpixel and lpixel parameters are integer arrays which specify the starting
// and ending pixel coordinate in each dimension (starting with 1, not 0) of the FITS image'
// and ending pixel coordinate in each dimension (starting with 1, not 0) of the FITS image'
int
ffgsv
(
int
bitpix
,
int
ffgsv
(
int
bitpix
,
int
naxis
,
long
*
naxes
,
int
naxis
,
/*
long *naxes,
*/
long
*
fpixel
,
/*long *lpixel, long *inc,*/
long
arraylen
,
long
*
fpixel
,
/*long *lpixel, long *inc,*/
long
arraylen
,
char
nulval
,
char
*
array
,
int
*
anynul
,
int
*
status
)
/*
char nulval,
*/
char
*
array
,
/*
int *anynul,
*/
int
*
status
)
{
{
//assert( fpixel[0] <= lpixel[0] );
//assert( fpixel[0] <= lpixel[0] );
...
@@ -177,7 +177,7 @@ class dav
...
@@ -177,7 +177,7 @@ class dav
fits_read_record
(
card_ix
+
1
,
card
,
status
);
fits_read_record
(
card_ix
+
1
,
card
,
status
);
fits_parse_value
(
card
,
value
,
NULL
,
status
);
fits_parse_value
(
card
,
value
,
NULL
,
status
);
if
((
value
!=
NULL
)
&&
(
*
status
==
0
))
if
(
/*
(value!=NULL) &&
*/
(
*
status
==
0
))
{
{
return
string
{
value
};
return
string
{
value
};
}
}
...
@@ -214,7 +214,7 @@ class dav
...
@@ -214,7 +214,7 @@ class dav
static
const
int
NCARDS
=
1400
;
static
const
int
NCARDS
=
1400
;
char
buffer
[
NCARDS
*
80
];
char
buffer
[
NCARDS
*
80
];
long
endcard_cix
;
int
endcard_cix
;
long
du_firstbyte_cix
;
long
du_firstbyte_cix
;
dav_off_t
volume
[
9
]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
dav_off_t
volume
[
9
]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
...
@@ -270,7 +270,7 @@ int fits_copy_image_section3(
...
@@ -270,7 +270,7 @@ int fits_copy_image_section3(
long
lpixels
[]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
long
lpixels
[]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
long
incs
[]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
long
incs
[]
=
{
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
};
char
*
cptr
,
keyname
[
FLEN_KEYWORD
],
card
[
FLEN_CARD
];
char
*
cptr
,
keyname
[
FLEN_KEYWORD
],
card
[
FLEN_CARD
];
int
ii
,
tstatus
,
anynull
;
int
ii
,
tstatus
;
long
minrow
,
maxrow
,
minslice
,
maxslice
,
mincube
,
maxcube
;
long
minrow
,
maxrow
,
minslice
,
maxslice
,
mincube
,
maxcube
;
long
firstpix
;
long
firstpix
;
long
ncubeiter
,
nsliceiter
,
nrowiter
,
kiter
,
jiter
,
iiter
;
long
ncubeiter
,
nsliceiter
,
nrowiter
,
kiter
,
jiter
,
iiter
;
...
@@ -551,8 +551,8 @@ int fits_copy_image_section3(
...
@@ -551,8 +551,8 @@ int fits_copy_image_section3(
lpixels
[
1
]
=
fpixels
[
1
];
lpixels
[
1
]
=
fpixels
[
1
];
//
//
fdav
.
ffgsv
(
bitpix
,
naxis
,
naxes
,
fdav
.
ffgsv
(
bitpix
,
naxis
,
/*
naxes,
*/
fpixels
,
buffsize
,
0
,
(
char
*
)
buffer
,
NULL
,
status
);
fpixels
,
buffsize
,
/*0,*/
(
char
*
)
buffer
,
/*
NULL,
*/
status
);
endianess
(
bitpix
,
buffsize
,
(
char
*
)
buffer
);
endianess
(
bitpix
,
buffsize
,
(
char
*
)
buffer
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment