Changeset: 65698b6f517e for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/65698b6f517e
Modified Files:
        monetdb5/modules/mal/mal_io.c
Branch: Oct2020
Log Message:

Compilation fix. Add default cases for io.printf functions for now


diffs (23 lines):

diff --git a/monetdb5/modules/mal/mal_io.c b/monetdb5/modules/mal/mal_io.c
--- a/monetdb5/modules/mal/mal_io.c
+++ b/monetdb5/modules/mal/mal_io.c
@@ -484,6 +484,9 @@ IOprintf(Client cntxt, MalBlkPtr mb, Mal
        case 9: msg= IOprintf_(&fmt2,*fmt,G(2),G(3),G(4),G(5),G(6),G(7),G(8));
                break;
        case 10: msg= 
IOprintf_(&fmt2,*fmt,G(2),G(3),G(4),G(5),G(6),G(7),G(8),G(9));
+               break;
+       default:
+               throw(MAL, "io.printf", "Too many arguments to io.printf");
        }
        if (msg== MAL_SUCCEED) {
                mnstr_printf(cntxt->fdout,"%s",fmt2);
@@ -518,6 +521,9 @@ IOprintfStream(Client cntxt, MalBlkPtr m
        case 10: msg= IOprintf_(&fmt2,*fmt,G(3),G(4),G(5),G(6),G(7),G(8),G(9));
                break;
        case 11: msg= 
IOprintf_(&fmt2,*fmt,G(3),G(4),G(5),G(6),G(7),G(8),G(9),G(10));
+               break;
+       default:
+               throw(MAL, "io.printf", "Too many arguments to io.printf");
        }
        if (msg== MAL_SUCCEED){
                mnstr_printf(f,"%s",fmt2);
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to