mirror of https://github.com/xzeldon/htop.git
Merge pull request #181 from cgzones/missing_prototypes
Add -Wmissing-prototypes compiler warning
This commit is contained in:
commit
8c9bd20013
|
@ -273,6 +273,7 @@ AM_CFLAGS="\
|
||||||
-Wfloat-equal\
|
-Wfloat-equal\
|
||||||
-Wmissing-format-attribute\
|
-Wmissing-format-attribute\
|
||||||
-Wmissing-noreturn\
|
-Wmissing-noreturn\
|
||||||
|
-Wmissing-prototypes\
|
||||||
-Wpointer-arith\
|
-Wpointer-arith\
|
||||||
-Wshadow\
|
-Wshadow\
|
||||||
-Wstrict-prototypes\
|
-Wstrict-prototypes\
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
|
#include "Battery.h"
|
||||||
#include "BatteryMeter.h"
|
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef HEADER_Battery
|
#ifndef HEADER_Battery
|
||||||
#define HEADER_Battery
|
#define HEADER_Battery
|
||||||
|
|
||||||
|
#include "BatteryMeter.h"
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,7 +6,8 @@ Released under the GNU GPL, see the COPYING file
|
||||||
in the source distribution for its full text.
|
in the source distribution for its full text.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BatteryMeter.h"
|
#include "Battery.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,8 @@ Released under the GNU GPL, see the COPYING file
|
||||||
in the source distribution for its full text.
|
in the source distribution for its full text.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "BatteryMeter.h"
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -5,7 +5,8 @@ Released under the GNU GPL, see the COPYING file
|
||||||
in the source distribution for its full text.
|
in the source distribution for its full text.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BatteryMeter.h"
|
#include "Battery.h"
|
||||||
|
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ Released under the GNU GPL, see the COPYING file
|
||||||
in the source distribution for its full text.
|
in the source distribution for its full text.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "BatteryMeter.h"
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -6,7 +6,8 @@ Released under the GNU GPL, see the COPYING file
|
||||||
in the source distribution for its full text.
|
in the source distribution for its full text.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "BatteryMeter.h"
|
#include "Battery.h"
|
||||||
|
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#include <sys/sensors.h>
|
#include <sys/sensors.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
|
@ -8,6 +8,8 @@ Released under the GNU GPL, see the COPYING file
|
||||||
in the source distribution for its full text.
|
in the source distribution for its full text.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "BatteryMeter.h"
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <math.h>
|
#include "Battery.h"
|
||||||
|
|
||||||
#include "BatteryMeter.h"
|
#include <math.h>
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC) {
|
void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||||
*level = NAN;
|
*level = NAN;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef HEADER_Battery
|
#ifndef HEADER_Battery
|
||||||
#define HEADER_Battery
|
#define HEADER_Battery
|
||||||
|
|
||||||
|
#include "BatteryMeter.h"
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#include <math.h>
|
#include "Battery.h"
|
||||||
|
|
||||||
#include "BatteryMeter.h"
|
#include <math.h>
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC) {
|
void Battery_getData(double* level, ACPresence* isOnAC) {
|
||||||
*level = NAN;
|
*level = NAN;
|
||||||
|
|
|
@ -1,6 +1,8 @@
|
||||||
#ifndef HEADER_Battery
|
#ifndef HEADER_Battery
|
||||||
#define HEADER_Battery
|
#define HEADER_Battery
|
||||||
|
|
||||||
|
#include "BatteryMeter.h"
|
||||||
|
|
||||||
void Battery_getData(double* level, ACPresence* isOnAC);
|
void Battery_getData(double* level, ACPresence* isOnAC);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue