-
-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: add --version and improve --help
- Loading branch information
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15932f0
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this commit I see this error in spa (gcc 14.2.0, pipewire 1.2.4)
| In file included from poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/builder.h:25, | from ../git/src/shared/ScreencopyShared.hpp:6, | from ../git/src/shared/ScreencopyShared.cpp:1: | ../git/src/shared/ScreencopyShared.cpp: In function 'spa_pod* fixate_format(spa_pod_builder*, spa_video_format, uint32_t, uint32_t, uint32_t, uint64_t*)': | poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:100:60: warning: taking address of rvalue [-fpermissive] | 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:66:61: note: in definition of macro 'SPA_POD_Rectangle' | 66 | #define SPA_POD_Rectangle(val) "R",val | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:248:70: note: in expansion of macro 'SPA_RECTANGLE' | 248 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_size, SPA_POD_Rectangle(&SPA_RECTANGLE(width, height)), 0); | | ^~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:71:61: note: in definition of macro 'SPA_POD_Fraction' | 71 | #define SPA_POD_Fraction(val) "F",val | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:250:74: note: in expansion of macro 'SPA_FRACTION' | 250 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_framerate, SPA_POD_Fraction(&SPA_FRACTION(0, 1)), 0); | | ^~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:27:60: note: in definition of macro 'SPA_CHOICE_RANGE' | 27 | #define SPA_CHOICE_RANGE(def,min,max) 3,(def),(min),(max) | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:251:59: note: in expansion of macro 'SPA_POD_CHOICE_RANGE_Fraction' | 251 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ../git/src/shared/ScreencopyShared.cpp:251:90: note: in expansion of macro 'SPA_FRACTION' | 251 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:27:66: note: in definition of macro 'SPA_CHOICE_RANGE' | 27 | #define SPA_CHOICE_RANGE(def,min,max) 3,(def),(min),(max) | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:251:59: note: in expansion of macro 'SPA_POD_CHOICE_RANGE_Fraction' | 251 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ../git/src/shared/ScreencopyShared.cpp:251:119: note: in expansion of macro 'SPA_FRACTION' | 251 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:27:72: note: in definition of macro 'SPA_CHOICE_RANGE' | 27 | #define SPA_CHOICE_RANGE(def,min,max) 3,(def),(min),(max) | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:251:59: note: in expansion of macro 'SPA_POD_CHOICE_RANGE_Fraction' | 251 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ../git/src/shared/ScreencopyShared.cpp:251:140: note: in expansion of macro 'SPA_FRACTION' | 251 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~ | ../git/src/shared/ScreencopyShared.cpp: In function 'spa_pod* build_format(spa_pod_builder*, spa_video_format, uint32_t, uint32_t, uint32_t, uint64_t*, int)': | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:100:60: warning: taking address of rvalue [-fpermissive] | 100 | #define SPA_RECTANGLE(width,height) ((struct spa_rectangle){ (width), (height) }) | | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:66:61: note: in definition of macro 'SPA_POD_Rectangle' | 66 | #define SPA_POD_Rectangle(val) "R",val | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:285:70: note: in expansion of macro 'SPA_RECTANGLE' | 285 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_size, SPA_POD_Rectangle(&SPA_RECTANGLE(width, height)), 0); | | ^~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:71:61: note: in definition of macro 'SPA_POD_Fraction' | 71 | #define SPA_POD_Fraction(val) "F",val | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:287:74: note: in expansion of macro 'SPA_FRACTION' | 287 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_framerate, SPA_POD_Fraction(&SPA_FRACTION(0, 1)), 0); | | ^~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:27:60: note: in definition of macro 'SPA_CHOICE_RANGE' | 27 | #define SPA_CHOICE_RANGE(def,min,max) 3,(def),(min),(max) | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:288:59: note: in expansion of macro 'SPA_POD_CHOICE_RANGE_Fraction' | 288 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ../git/src/shared/ScreencopyShared.cpp:288:90: note: in expansion of macro 'SPA_FRACTION' | 288 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:27:66: note: in definition of macro 'SPA_CHOICE_RANGE' | 27 | #define SPA_CHOICE_RANGE(def,min,max) 3,(def),(min),(max) | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:288:59: note: in expansion of macro 'SPA_POD_CHOICE_RANGE_Fraction' | 288 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ../git/src/shared/ScreencopyShared.cpp:288:119: note: in expansion of macro 'SPA_FRACTION' | 288 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/utils/defs.h:118:55: warning: taking address of rvalue [-fpermissive] | 118 | #define SPA_FRACTION(num,denom) ((struct spa_fraction){ (num), (denom) }) | | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~ | /home/flk/poky/build/tmp/work/corei7-64-poky-linux/xdg-desktop-portal-hyprland/1.3.5/recipe-sysroot/usr/include/spa-0.2/spa/pod/vararg.h:27:72: note: in definition of macro 'SPA_CHOICE_RANGE' | 27 | #define SPA_CHOICE_RANGE(def,min,max) 3,(def),(min),(max) | | ^~~ | ../git/src/shared/ScreencopyShared.cpp:288:59: note: in expansion of macro 'SPA_POD_CHOICE_RANGE_Fraction' | 288 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | ../git/src/shared/ScreencopyShared.cpp:288:140: note: in expansion of macro 'SPA_FRACTION' | 288 | spa_pod_builder_add(b, SPA_FORMAT_VIDEO_maxFramerate, SPA_POD_CHOICE_RANGE_Fraction(&SPA_FRACTION(framerate, 1), &SPA_FRACTION(1, 1), &SPA_FRACTION(framerate, 1)), 0); | | ^~~~~~~~~~~~