Return statements for effectFind functions
authorEthan Lee <flibitijibibo@flibitijibibo.com>
Wed, 29 May 2019 16:48:58 -0400
changeset 1205 59d969911962
parent 1204 21422b28cfd4
child 1206 8073819b258d
Return statements for effectFind functions
mojoshader_effects.c
--- a/mojoshader_effects.c	Mon May 27 03:09:07 2019 -0400
+++ b/mojoshader_effects.c	Wed May 29 16:48:58 2019 -0400
@@ -241,6 +241,7 @@
         if (strcmp(name, params[i].value.name) == 0)
             return i;
     assert(0 && "Parameter not found!");
+    return -1;
 }
 
 static void readvalue(const uint8 *base,
@@ -1724,6 +1725,7 @@
         } // if
     } // for
     assert(0 && "Technique is not part of this effect!");
+    return NULL;
 } // MOJOSHADER_effectFindNextValidTechnique
 
 #endif // MOJOSHADER_EFFECT_SUPPORT