Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / bin / lttng / commands / view.c
index adedf298966c0c7fad786f13bb34a66f4698a6de..37fb4b8bc3a867ee06ff3e52b3c9155a7069e1a6 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <popt.h>
 #include <stdio.h>
 #include <stdlib.h>
@@ -445,6 +446,10 @@ int cmd_view(int argc, const char **argv)
        pc = poptGetContext(NULL, argc, argv, long_options, 0);
        poptReadDefaultConfig(pc, 0);
 
+       if (lttng_opt_mi) {
+               WARN("mi does not apply to view command");
+       }
+
        while ((opt = poptGetNextOpt(pc)) != -1) {
                switch (opt) {
                case OPT_HELP:
This page took 0.0243 seconds and 4 git commands to generate.