Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 33a7101

Browse files
committed
Quiet a few MSC compiler warnings.
1 parent 7e2f8ed commit 33a7101

File tree

4 files changed

+7
-1
lines changed

4 files changed

+7
-1
lines changed

src/backend/catalog/objectaddress.c

+2
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+
return NULL; /* keep MSC compiler happy */
13631365
}

src/backend/optimizer/path/costsize.c

+3
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

+1-1
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

+1
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)