forked from enlightenment/efl
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
This commit is contained in:
parent
288f645e3c
commit
7c23ba7c93
|
@ -1,5 +1,7 @@
|
||||||
#define EFL_CXXPERIMENTAL // for background part
|
#define EFL_CXXPERIMENTAL // for background part
|
||||||
|
#ifndef EFL_BETA_API_SUPPORT
|
||||||
#define EFL_BETA_API_SUPPORT
|
#define EFL_BETA_API_SUPPORT
|
||||||
|
#endif
|
||||||
#include <Efl_Ui.hh>
|
#include <Efl_Ui.hh>
|
||||||
|
|
||||||
using efl::eo::instantiate;
|
using efl::eo::instantiate;
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define EFL_CXXPERIMENTAL
|
#define EFL_CXXPERIMENTAL
|
||||||
|
#ifndef EFL_BETA_API_SUPPORT
|
||||||
#define EFL_BETA_API_SUPPORT
|
#define EFL_BETA_API_SUPPORT
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <Efl_Ui.hh>
|
#include <Efl_Ui.hh>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
// 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
|
// 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
|
||||||
|
|
||||||
#define EFL_CXXPERIMENTAL
|
#define EFL_CXXPERIMENTAL
|
||||||
|
#ifndef EFL_BETA_API_SUPPORT
|
||||||
#define EFL_BETA_API_SUPPORT
|
#define EFL_BETA_API_SUPPORT
|
||||||
|
#endif
|
||||||
#include <Efl_Ui.hh>
|
#include <Efl_Ui.hh>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
// 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
|
// 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
|
||||||
|
|
||||||
#define EFL_CXXPERIMENTAL
|
#define EFL_CXXPERIMENTAL
|
||||||
|
#ifndef EFL_BETA_API_SUPPORT
|
||||||
#define EFL_BETA_API_SUPPORT
|
#define EFL_BETA_API_SUPPORT
|
||||||
|
#endif
|
||||||
#include <Efl_Ui.hh>
|
#include <Efl_Ui.hh>
|
||||||
|
|
||||||
using efl::eo::instantiate;
|
using efl::eo::instantiate;
|
||||||
|
|
|
@ -39,6 +39,7 @@ struct appData
|
||||||
}, _1, _2);
|
}, _1, _2);
|
||||||
// FIXME XAR: I broke this and I do not know how to fix it
|
// FIXME XAR: I broke this and I do not know how to fix it
|
||||||
// cal.format_func_set(cb_a);
|
// cal.format_func_set(cb_a);
|
||||||
|
(void)cb_a;
|
||||||
}
|
}
|
||||||
|
|
||||||
void destroy() {
|
void destroy() {
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
// 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
|
// 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
|
||||||
|
|
||||||
#define EFL_CXXPERIMENTAL
|
#define EFL_CXXPERIMENTAL
|
||||||
|
#ifndef EFL_BETA_API_SUPPORT
|
||||||
#define EFL_BETA_API_SUPPORT
|
#define EFL_BETA_API_SUPPORT
|
||||||
|
#endif
|
||||||
#include <Efl_Ui.hh>
|
#include <Efl_Ui.hh>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,9 @@
|
||||||
// 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
|
// 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
|
||||||
|
|
||||||
#define EFL_CXXPERIMENTAL
|
#define EFL_CXXPERIMENTAL
|
||||||
|
#ifndef EFL_BETA_API_SUPPORT
|
||||||
#define EFL_BETA_API_SUPPORT
|
#define EFL_BETA_API_SUPPORT
|
||||||
|
#endif
|
||||||
#include <Efl_Ui.hh>
|
#include <Efl_Ui.hh>
|
||||||
|
|
||||||
using namespace std::placeholders;
|
using namespace std::placeholders;
|
||||||
|
|
|
@ -7,7 +7,9 @@
|
||||||
|
|
||||||
#warning This example requires yet unfinished EO APIs
|
#warning This example requires yet unfinished EO APIs
|
||||||
|
|
||||||
|
#ifndef EFL_BETA_API_SUPPORT
|
||||||
#define EFL_BETA_API_SUPPORT
|
#define EFL_BETA_API_SUPPORT
|
||||||
|
#endif
|
||||||
#include <Efl_Ui.hh>
|
#include <Efl_Ui.hh>
|
||||||
|
|
||||||
EAPI int
|
EAPI int
|
||||||
|
|
Loading…
Reference in New Issue