intel/aubinator_error_decode: Get rid of warning for missing switch case
authorToni Lönnberg <toni.lonnberg@intel.com>
Tue, 4 Dec 2018 12:14:51 +0000 (14:14 +0200)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tue, 4 Dec 2018 12:47:49 +0000 (12:47 +0000)
../src/intel/tools/aubinator_error_decode.c: In function ‘instdone_register_for_ring’:
../src/intel/tools/aubinator_error_decode.c:177:4: warning: enumeration value ‘I915_ENGINE_CLASS_INVALID’ not handled in switch [-Wswitch]
    switch (class) {
    ^~~~~~
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/tools/aubinator_error_decode.c

index 49f0738e8819b3464792ba0439c5fcbe82561047..ea822d0161b18ac825dd0b067486e22836f6bb97 100644 (file)
@@ -196,6 +196,9 @@ instdone_register_for_ring(const struct gen_device_info *devinfo,
 
    case I915_ENGINE_CLASS_VIDEO_ENHANCE:
       return "VECS_INSTDONE";
+
+   default:
+      return NULL;
    }
 
    return NULL;