mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 03:51:50 +00:00
fix compiler warnings (GCC + Clang)
This commit is contained in:
parent
6c3d2d0907
commit
3d22de761f
50 changed files with 80 additions and 103 deletions
|
|
@ -6,7 +6,7 @@
|
|||
#include "util/stringutil.hpp"
|
||||
|
||||
namespace {
|
||||
int is_box(int c) {
|
||||
inline int is_box(int c) {
|
||||
switch (c) {
|
||||
case 'B':
|
||||
case 'b':
|
||||
|
|
@ -21,7 +21,7 @@ namespace {
|
|||
return 10;
|
||||
}
|
||||
|
||||
double power(double base, int64_t power) {
|
||||
inline double power(double base, int64_t power) {
|
||||
double result = 1.0;
|
||||
for (int64_t i = 0; i < power; i++) {
|
||||
result *= base;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue