Skip to content

Commit 69262ff

Browse files
committed
Adds static to helper functions
1 parent 8570b5c commit 69262ff

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

numeric_types/half.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <cstdio>
99

1010
struct half;
11-
half halfFromFloat(float f);
12-
float halfToFloat(half h);
11+
static half halfFromFloat(float f);
12+
static float halfToFloat(half h);
1313

1414
/**
1515
* Experimental implementation of half-precision 16-bit floating point numbers.

utils/logging.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static Logger kDefLog = {stdout, "", kInfo};
6767
* @brief Set the log level of the default logger.
6868
* @param level The log level to set.
6969
*/
70-
void setLogLevel(int level) {
70+
static void setLogLevel(int level) {
7171
kDefLog.level = level;
7272
}
7373

0 commit comments

Comments
 (0)