diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2023-03-30 12:58:11 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2023-04-10 09:21:46 +0000 |
commit | df4aea5adaee2bb62948e822b617b0341c3c43d5 (patch) | |
tree | ad781e9217b13eb9b6d2fd608310659eb9a9803d /test | |
parent | 11539a2d82b56332548fdbc6903e66f9aef8b6ff (diff) |
mmtty: handle MM_LOG_LEVEL_MSG in _mm_log()
GCC 13 is unhappy about mixing enums and ints. However, if we fix the
type un mmtty's _mm_log() prototype, the compiler will find something
else to be irritiated about:
[1/2] Compiling C object test/mmtty.p/mmtty.c.o
../test/mmtty.c: In function ‘_mm_log’:
../test/mmtty.c:283:5: warning: enumeration value ‘MM_LOG_LEVEL_MSG’ not handled in switch [-Wswitch-enum]
283 | switch (level) {
| ^~~~~~
[2/2] Linking target test/mmtty
Fix that first.
Diffstat (limited to 'test')
-rw-r--r-- | test/mmtty.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/test/mmtty.c b/test/mmtty.c index 5e8e16b0..f12da0f7 100644 --- a/test/mmtty.c +++ b/test/mmtty.c @@ -281,6 +281,9 @@ _mm_log (gpointer obj, return; switch (level) { + case MM_LOG_LEVEL_MSG: + level_str = "message"; + break; case MM_LOG_LEVEL_DEBUG: level_str = "debug"; break; |