[libbluray-devel] [Git][videolan/libbluray][master] Silence warning (clang)

Petri Hintukainen gitlab at videolan.org
Wed Jan 20 16:59:51 UTC 2021



Petri Hintukainen pushed to branch master at VideoLAN / libbluray


Commits:
e5c3ad4b by hpi1 at 2021-01-20T18:59:34+02:00
Silence warning (clang)

- - - - -


1 changed file:

- src/libbluray/bluray.c


Changes:

=====================================
src/libbluray/bluray.c
=====================================
@@ -193,7 +193,7 @@ void bd_get_version(int *major, int *minor, int *micro)
 const char *bd_event_name(uint32_t event)
 {
   switch ((bd_event_e)event) {
-#define EVENT_ENTRY(e) case e : return #e + 9
+#define EVENT_ENTRY(e) case e : return & (#e [9])
         EVENT_ENTRY(BD_EVENT_NONE);
         EVENT_ENTRY(BD_EVENT_ERROR);
         EVENT_ENTRY(BD_EVENT_READ_ERROR);



View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/e5c3ad4be70793f52d8051701d79de35295cdf91

-- 
View it on GitLab: https://code.videolan.org/videolan/libbluray/-/commit/e5c3ad4be70793f52d8051701d79de35295cdf91
You're receiving this email because of your account on code.videolan.org.




More information about the libbluray-devel mailing list