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

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+
return NULL; /* 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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy