summaryrefslogtreecommitdiff
path: root/src/examples/elementary
diff options
context:
space:
mode:
authorVitor Sousa <vitorsousa@expertisesolutions.com.br>2019-07-09 10:13:27 +0200
committerXavi Artigas <xavierartigas@yahoo.es>2019-07-09 10:13:27 +0200
commit7c23ba7c9325c33c514f1e1b4c05d6c43a7d2acd (patch)
treec99b9b7db4f1bbb652ec06e4875d92e75e22da95 /src/examples/elementary
parent288f645e3cdbd2890350dc1ab4434a8a0a5806cc (diff)
cxx: fix some compilation warnings in C++ examples
Summary: Fix some warnings in the C++ examples for elementary. These examples are build by default in the normal meson compilation. Only accidental warnings were fixed, explicit warnings using the `#warning` preprocessor directive were maintained. Test Plan: Compile with C++ binding. Reviewers: lauromoura, felipealmeida, segfaultxavi Reviewed By: segfaultxavi Subscribers: bu5hm4n, cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D9244
Diffstat (limited to 'src/examples/elementary')
-rw-r--r--src/examples/elementary/bg_cxx_example_01.cc2
-rw-r--r--src/examples/elementary/bg_cxx_example_02.cc2
-rw-r--r--src/examples/elementary/button_cxx_example_00.cc2
-rw-r--r--src/examples/elementary/button_cxx_example_01.cc2
-rw-r--r--src/examples/elementary/calendar_cxx_example_02.cc1
-rw-r--r--src/examples/elementary/radio_cxx_example_01.cc2
-rw-r--r--src/examples/elementary/slider_cxx_example.cc2
-rw-r--r--src/examples/elementary/toolbar_cxx_example_01.cc2
8 files changed, 15 insertions, 0 deletions
diff --git a/src/examples/elementary/bg_cxx_example_01.cc b/src/examples/elementary/bg_cxx_example_01.cc
index 5c8a61e..4c1368a 100644
--- a/src/examples/elementary/bg_cxx_example_01.cc
+++ b/src/examples/elementary/bg_cxx_example_01.cc
@@ -1,5 +1,7 @@
1#define EFL_CXXPERIMENTAL // for background part 1#define EFL_CXXPERIMENTAL // for background part
2#ifndef EFL_BETA_API_SUPPORT
2#define EFL_BETA_API_SUPPORT 3#define EFL_BETA_API_SUPPORT
4#endif
3#include <Efl_Ui.hh> 5#include <Efl_Ui.hh>
4 6
5using efl::eo::instantiate; 7using efl::eo::instantiate;
diff --git a/src/examples/elementary/bg_cxx_example_02.cc b/src/examples/elementary/bg_cxx_example_02.cc
index 07b40ab..4969819 100644
--- a/src/examples/elementary/bg_cxx_example_02.cc
+++ b/src/examples/elementary/bg_cxx_example_02.cc
@@ -6,7 +6,9 @@
6 */ 6 */
7 7
8#define EFL_CXXPERIMENTAL 8#define EFL_CXXPERIMENTAL
9#ifndef EFL_BETA_API_SUPPORT
9#define EFL_BETA_API_SUPPORT 10#define EFL_BETA_API_SUPPORT
11#endif
10 12
11#include <Efl_Ui.hh> 13#include <Efl_Ui.hh>
12 14
diff --git a/src/examples/elementary/button_cxx_example_00.cc b/src/examples/elementary/button_cxx_example_00.cc
index ff9f569..2d58c7f 100644
--- a/src/examples/elementary/button_cxx_example_00.cc
+++ b/src/examples/elementary/button_cxx_example_00.cc
@@ -1,7 +1,9 @@
1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` button_cxx_example_00.cc -o button_cxx_example_00 1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` button_cxx_example_00.cc -o button_cxx_example_00
2 2
3#define EFL_CXXPERIMENTAL 3#define EFL_CXXPERIMENTAL
4#ifndef EFL_BETA_API_SUPPORT
4#define EFL_BETA_API_SUPPORT 5#define EFL_BETA_API_SUPPORT
6#endif
5#include <Efl_Ui.hh> 7#include <Efl_Ui.hh>
6#include <iostream> 8#include <iostream>
7 9
diff --git a/src/examples/elementary/button_cxx_example_01.cc b/src/examples/elementary/button_cxx_example_01.cc
index 4c53ba6..47b1b9d 100644
--- a/src/examples/elementary/button_cxx_example_01.cc
+++ b/src/examples/elementary/button_cxx_example_01.cc
@@ -1,7 +1,9 @@
1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` button_cxx_example_01.cc -o button_cxx_example_01 1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` button_cxx_example_01.cc -o button_cxx_example_01
2 2
3#define EFL_CXXPERIMENTAL 3#define EFL_CXXPERIMENTAL
4#ifndef EFL_BETA_API_SUPPORT
4#define EFL_BETA_API_SUPPORT 5#define EFL_BETA_API_SUPPORT
6#endif
5#include <Efl_Ui.hh> 7#include <Efl_Ui.hh>
6 8
7using efl::eo::instantiate; 9using efl::eo::instantiate;
diff --git a/src/examples/elementary/calendar_cxx_example_02.cc b/src/examples/elementary/calendar_cxx_example_02.cc
index e666ae8..dba2b1a 100644
--- a/src/examples/elementary/calendar_cxx_example_02.cc
+++ b/src/examples/elementary/calendar_cxx_example_02.cc
@@ -39,6 +39,7 @@ struct appData
39 }, _1, _2); 39 }, _1, _2);
40 // FIXME XAR: I broke this and I do not know how to fix it 40 // FIXME XAR: I broke this and I do not know how to fix it
41 // cal.format_func_set(cb_a); 41 // cal.format_func_set(cb_a);
42 (void)cb_a;
42 } 43 }
43 44
44 void destroy() { 45 void destroy() {
diff --git a/src/examples/elementary/radio_cxx_example_01.cc b/src/examples/elementary/radio_cxx_example_01.cc
index 90a508e..b561d02 100644
--- a/src/examples/elementary/radio_cxx_example_01.cc
+++ b/src/examples/elementary/radio_cxx_example_01.cc
@@ -1,7 +1,9 @@
1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` radio_cxx_example_01.cc -o radio_cxx_example_01 1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` radio_cxx_example_01.cc -o radio_cxx_example_01
2 2
3#define EFL_CXXPERIMENTAL 3#define EFL_CXXPERIMENTAL
4#ifndef EFL_BETA_API_SUPPORT
4#define EFL_BETA_API_SUPPORT 5#define EFL_BETA_API_SUPPORT
6#endif
5#include <Efl_Ui.hh> 7#include <Efl_Ui.hh>
6#include <iostream> 8#include <iostream>
7 9
diff --git a/src/examples/elementary/slider_cxx_example.cc b/src/examples/elementary/slider_cxx_example.cc
index bc6bd76..2540516 100644
--- a/src/examples/elementary/slider_cxx_example.cc
+++ b/src/examples/elementary/slider_cxx_example.cc
@@ -1,7 +1,9 @@
1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` slider_cxx_example.cc -o slider_cxx_example 1// g++ -g `pkg-config --cflags --libs elementary-cxx efl-cxx eina-cxx eo-cxx ecore-cxx evas-cxx edje-cxx` slider_cxx_example.cc -o slider_cxx_example
2 2
3#define EFL_CXXPERIMENTAL 3#define EFL_CXXPERIMENTAL
4#ifndef EFL_BETA_API_SUPPORT
4#define EFL_BETA_API_SUPPORT 5#define EFL_BETA_API_SUPPORT
6#endif
5#include <Efl_Ui.hh> 7#include <Efl_Ui.hh>
6 8
7using namespace std::placeholders; 9using namespace std::placeholders;
diff --git a/src/examples/elementary/toolbar_cxx_example_01.cc b/src/examples/elementary/toolbar_cxx_example_01.cc
index 278a1bf..19a9931 100644
--- a/src/examples/elementary/toolbar_cxx_example_01.cc
+++ b/src/examples/elementary/toolbar_cxx_example_01.cc
@@ -7,7 +7,9 @@
7 7
8#warning This example requires yet unfinished EO APIs 8#warning This example requires yet unfinished EO APIs
9 9
10#ifndef EFL_BETA_API_SUPPORT
10#define EFL_BETA_API_SUPPORT 11#define EFL_BETA_API_SUPPORT
12#endif
11#include <Efl_Ui.hh> 13#include <Efl_Ui.hh>
12 14
13EAPI int 15EAPI int