fix compiler warnings (GCC + Clang)

This commit is contained in:
MihailRis
2025-03-20 22:04:29 +03:00
parent 6c3d2d0907
commit 3d22de761f
50 changed files with 80 additions and 103 deletions
+2 -2
View File
@@ -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;