Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
phosh
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
140
Issues
140
List
Boards
Labels
Milestones
Merge Requests
21
Merge Requests
21
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Librem5
phosh
Commits
8c3c378a
Commit
8c3c378a
authored
Jul 29, 2018
by
Guido Gunther
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
meson: Make missing declarations an error
Detects missing includes and missing static defitions
parent
97e8e3d5
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
12 additions
and
12 deletions
+12
-12
meson.build
meson.build
+1
-0
src/auth.c
src/auth.c
+1
-1
src/lockscreen.c
src/lockscreen.c
+1
-1
src/phosh.c
src/phosh.c
+1
-1
src/settings.c
src/settings.c
+0
-6
src/settings/brightness.c
src/settings/brightness.c
+5
-2
src/wwan/phosh-wwan-mm.c
src/wwan/phosh-wwan-mm.c
+1
-1
tests/phoshstub.c
tests/phoshstub.c
+2
-0
No files found.
meson.build
View file @
8c3c378a
...
...
@@ -39,6 +39,7 @@ test_c_args = [
'-Wcast-align',
'-Wdeclaration-after-statement',
['-Werror=format-security', '-Werror=format=2'],
'-Werror=missing-declarations',
'-Wformat-nonliteral',
'-Wformat-security',
'-Wmaybe-uninitialized',
...
...
src/auth.c
View file @
8c3c378a
...
...
@@ -63,7 +63,7 @@ pam_conversation_cb(int num_msg, const struct pam_message **msg,
/* return TRUE if pin is correct, FALSE otherwise */
gboolean
static
gboolean
authenticate
(
PhoshAuth
*
self
,
const
gchar
*
number
)
{
PhoshAuthPrivate
*
priv
=
phosh_auth_get_instance_private
(
self
);
...
...
src/lockscreen.c
View file @
8c3c378a
...
...
@@ -128,7 +128,7 @@ show_unlock_page (PhoshLockscreen *self)
/* callback of async auth task */
void
static
void
auth_async_cb
(
PhoshAuth
*
auth
,
GAsyncResult
*
result
,
PhoshLockscreen
*
self
)
{
PhoshLockscreenPrivate
*
priv
;
...
...
src/phosh.c
View file @
8c3c378a
...
...
@@ -646,7 +646,7 @@ phosh_shell_get_default (void)
}
gboolean
static
gboolean
sigterm_cb
(
gpointer
unused
)
{
g_debug
(
"Cleaning up"
);
...
...
src/settings.c
View file @
8c3c378a
...
...
@@ -44,12 +44,6 @@ typedef struct _PhoshSettings
G_DEFINE_TYPE_WITH_PRIVATE
(
PhoshSettings
,
phosh_settings
,
GTK_TYPE_WINDOW
)
GtkWidget
*
phosh_settings
(
const
char
*
name
)
{
return
g_object_new
(
PHOSH_TYPE_SETTINGS
,
"name"
,
name
,
NULL
);
}
static
void
brightness_value_changed_cb
(
GtkScale
*
scale_brightness
,
gpointer
*
unused
)
{
...
...
src/settings/brightness.c
View file @
8c3c378a
...
...
@@ -10,11 +10,14 @@
#include <gio/gio.h>
#include <gtk/gtk.h>
#include "settings/brightness.h"
GDBusProxy
*
brightness_proxy
;
gboolean
setting_brightness
;
void
static
void
brightness_changed_cb
(
GDBusProxy
*
proxy
,
GVariant
*
changed_props
,
GVariant
*
invalidated_props
,
...
...
@@ -85,7 +88,7 @@ brightness_init (GtkScale *scale)
void
static
void
brightness_set_cb
(
GDBusProxy
*
proxy
,
GAsyncResult
*
res
,
gpointer
unused
)
{
GError
*
err
=
NULL
;
...
...
src/wwan/phosh-wwan-mm.c
View file @
8c3c378a
...
...
@@ -104,7 +104,7 @@ phosh_wwan_mm_update_signal_quality (PhoshWWanMM *self)
}
const
char
*
static
const
char
*
user_friendly_access_tec
(
guint
access_tec
)
{
switch
(
access_tec
)
{
...
...
tests/phoshstub.c
View file @
8c3c378a
/* Stubs so we don't need to run the shell */
#include <glib.h>
#include "phosh-wayland.h"
#include "phosh.h"
gpointer
phosh_shell_get_default
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment