diff options
author | MITSUNARI Shigeo <[email protected]> | 2022-11-24 11:49:29 +0900 |
---|---|---|
committer | MITSUNARI Shigeo <[email protected]> | 2022-11-24 15:48:06 +0900 |
commit | d8cabc6cb7023ac8541a5b93527341f3869b045d (patch) | |
tree | b23e23228451a8878f2df14153d659d0db6f9db1 | |
parent | bc73a081642f89d6ffc8442a3c8f86ac24ca2729 (diff) | |
download | xbyak-d8cabc6cb7023ac8541a5b93527341f3869b045d.tar.gz xbyak-d8cabc6cb7023ac8541a5b93527341f3869b045d.zip |
remove warning of blace
-rw-r--r-- | test/make_nm.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/make_nm.cpp b/test/make_nm.cpp index 5106bf9..e5939eb 100644 --- a/test/make_nm.cpp +++ b/test/make_nm.cpp @@ -1018,9 +1018,7 @@ class Test { } void putCmov() const { - const struct { - const char *s; - } tbl[] = { + const char tbl[][4] = { "o", "no", "b", @@ -1054,11 +1052,11 @@ class Test { }; for (size_t i = 0; i < NUM_OF_ARRAY(tbl); i++) { char buf[32]; - snprintf(buf, sizeof(buf), "cmov%s", tbl[i].s); + snprintf(buf, sizeof(buf), "cmov%s", tbl[i]); put(buf, REG16, REG16|MEM); put(buf, REG32, REG32|MEM); put(buf, REG64, REG64|MEM); - snprintf(buf, sizeof(buf), "set%s", tbl[i].s); + snprintf(buf, sizeof(buf), "set%s", tbl[i]); put(buf, REG8|REG8_3|MEM); } } |