Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit33a7101

Browse files
committed
Quiet a few MSC compiler warnings.
1 parent7e2f8ed commit33a7101

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

‎src/backend/catalog/objectaddress.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1360,4 +1360,6 @@ get_object_property_data(Oid class_id)
13601360

13611361
ereport(ERROR,
13621362
(errmsg_internal("unrecognized class id: %u",class_id)));
1363+
1364+
returnNULL;/* keep MSC compiler happy */
13631365
}

‎src/backend/optimizer/path/costsize.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868

6969
#include"postgres.h"
7070

71+
#ifdef_MSCVER
72+
#include<float.h>/* for _isnan */
73+
#endif
7174
#include<math.h>
7275

7376
#include"access/htup_details.h"

‎src/backend/utils/adt/array_selfuncs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ mcelem_array_contain_overlap_selec(Datum *mcelem, int nmcelem,
571571
else
572572
{
573573
/* Without statistics make some default assumptions */
574-
minfreq=2*DEFAULT_CONTAIN_SEL;
574+
minfreq=2*(float4)DEFAULT_CONTAIN_SEL;
575575
}
576576

577577
/* Decide whether it is faster to use binary search or not. */

‎src/interfaces/ecpg/ecpglib/typename.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ ecpg_type_name(enum ECPGttype typ)
6565
default:
6666
abort();
6767
}
68+
return"";/* keep MSC compiler happy */
6869
}
6970

7071
int

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp