mirror of
https://github.com/ashaduri/gsmartcontrol.git
synced 2026-09-25 13:25:37 +00:00
Fixed building examples.
This commit is contained in:
@@ -18,8 +18,8 @@ Copyright:
|
||||
#include <iostream>
|
||||
#include <gtkmm.h>
|
||||
|
||||
// #include "smartctl_executor_gui.h"
|
||||
#include "smartctl_executor.h"
|
||||
// #include "applib/smartctl_executor_gui.h"
|
||||
#include "applib/smartctl_executor.h"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -20,8 +20,8 @@ Copyright:
|
||||
|
||||
#include "libdebug/libdebug.h"
|
||||
#include "hz/fs.h"
|
||||
#include "storage_property.h"
|
||||
#include "smartctl_parser.h"
|
||||
#include "applib/storage_property.h"
|
||||
#include "applib/smartctl_parser.h"
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ Copyright:
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#include "storage_device.h"
|
||||
#include "storage_detector.h"
|
||||
#include "applib/storage_device.h"
|
||||
#include "applib/storage_detector.h"
|
||||
#include "gsc_settings.h" // in src directory
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ Copyright:
|
||||
|
||||
// The first header should be then one we're testing, to avoid missing
|
||||
// header pitfalls.
|
||||
#include "format_unit.h"
|
||||
#include "hz/format_unit.h"
|
||||
|
||||
#include <iostream>
|
||||
#include <cstdint>
|
||||
|
||||
@@ -18,7 +18,7 @@ Copyright:
|
||||
|
||||
// The first header should be then one we're testing, to avoid missing
|
||||
// header pitfalls.
|
||||
#include "string_algo.h"
|
||||
#include "hz/string_algo.h"
|
||||
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
||||
@@ -18,7 +18,7 @@ Copyright:
|
||||
|
||||
// The first header should be then one we're testing, to avoid missing
|
||||
// header pitfalls.
|
||||
#include "string_num.h"
|
||||
#include "hz/string_num.h"
|
||||
|
||||
#include <limits>
|
||||
#include <iostream>
|
||||
|
||||
@@ -11,7 +11,7 @@ Copyright:
|
||||
|
||||
// The first header should be then one we're testing, to avoid missing
|
||||
// header pitfalls.
|
||||
#include "libdebug.h"
|
||||
#include "libdebug/libdebug.h"
|
||||
|
||||
#include <iostream>
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace libdebug_example {
|
||||
|
||||
/// Libdebug test class
|
||||
struct TestClassA {
|
||||
bool func(int a = 2)
|
||||
bool func([[maybe_unused]] int a = 2)
|
||||
{
|
||||
// this prints "func"
|
||||
debug_out_info("default", DBG_FUNC_NAME << "\n");
|
||||
@@ -46,7 +46,7 @@ namespace {
|
||||
template<typename U>
|
||||
struct TestClassB {
|
||||
template<typename V>
|
||||
U func2(V v, int)
|
||||
U func2([[maybe_unused]] V v, int)
|
||||
{
|
||||
debug_out_info("default", DBG_FUNC_PRNAME << "\n");
|
||||
debug_out_info("default", DBG_FUNC_MSG << "function called.\n");
|
||||
@@ -63,7 +63,7 @@ namespace {
|
||||
|
||||
|
||||
/// Main function for the test
|
||||
int main(int argc, char *argv[])
|
||||
int main()
|
||||
{
|
||||
debug_register_domain("dom");
|
||||
|
||||
|
||||
@@ -16,10 +16,10 @@ Copyright:
|
||||
#undef HZ_EMULATE_LIBDEBUG
|
||||
#define HZ_EMULATE_LIBDEBUG 1
|
||||
|
||||
#include "loadsave.h"
|
||||
#include "rconfig/loadsave.h"
|
||||
|
||||
#if defined ENABLE_GLIB && ENABLE_GLIB
|
||||
#include "autosave.h"
|
||||
#include "rconfig/autosave.h"
|
||||
#endif
|
||||
|
||||
#include <iostream>
|
||||
|
||||
Reference in New Issue
Block a user