Skip to content

Commit e47537a

Browse files
committed
update(src): Fix some warnings
1 parent 037d795 commit e47537a

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

AMBuilder

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ for sdk_target in MMSPlugin.sdk_targets:
6161
"-Wno-int-to-pointer-cast",
6262
"-Wno-sign-compare",
6363
"-Wno-write-strings",
64+
"-Wno-class-memaccess",
6465
"-fexceptions",
6566
]
6667
binary.compiler.cflags += [
@@ -117,7 +118,8 @@ for sdk_target in MMSPlugin.sdk_targets:
117118
"/TP",
118119
"/MT",
119120
"/W3",
120-
"/Z7"
121+
"/Z7",
122+
"/IGNORE:4101,4267,4244,4005,4003,4530",
121123
]
122124
binary.compiler.postlink += [
123125
os.path.join(builder.sourcePath, 'vendor', 'funchook', 'lib', 'funchook.lib'),

src/sdk/interfaces/cschemasystem.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ struct CSchemaNetworkValue
1515
};
1616
};
1717

18-
class SchemaClassInfoData_t;
18+
struct SchemaClassInfoData_t;
1919

2020
class CSchemaSystemTypeScope
2121
{

vendor/embedder

vendor/texttable/TextTable.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,11 @@ class TextTable
119119
return result;
120120
}
121121

122-
unsigned columns() const { return _rows[0].size(); }
122+
unsigned columns() const { return (unsigned)_rows[0].size(); }
123123

124124
unsigned glyphLength(const std::string &s) const
125125
{
126-
unsigned int _byteLength = s.length();
126+
unsigned int _byteLength = (unsigned int)(s.length());
127127
#ifdef TEXTTABLE_ENCODE_MULTIBYTE_STRINGS
128128
#ifdef TEXTTABLE_USE_EN_US_UTF8
129129
std::setlocale(LC_ALL, "en_US.utf8");

0 commit comments

Comments
 (0)