Skip to content

Warning on build tests #2112

@ktrace

Description

@ktrace

When build v1.9.0 and later, I've got warnings:

tests/compat_options.c:26:21: warning: variable ‘repsock’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/convey.h:105:36: warning: variable ‘convey_break’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:142:23: warning: variable ‘temp’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:143:23: warning: variable ‘mydir’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:144:23: warning: variable ‘a’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:145:23: warning: variable ‘b’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:146:23: warning: variable ‘c’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:147:23: warning: variable ‘d’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:235:24: warning: variable ‘temp’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:236:24: warning: variable ‘empty’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:29:24: warning: variable ‘temp’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/files.c:30:24: warning: variable ‘file’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpclient.c:164:40: warning: variable ‘conn’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpclient.c:84:45: warning: variable ‘data’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:217:42: warning: variable ‘h’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:290:26: warning: variable ‘tmpdir’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:291:26: warning: variable ‘workdir’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:292:26: warning: variable ‘file1’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:293:26: warning: variable ‘file2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:294:26: warning: variable ‘file3’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:295:26: warning: variable ‘subdir1’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:296:26: warning: variable ‘subdir2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:512:26: warning: variable ‘tmpdir’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:513:26: warning: variable ‘workdir’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:514:26: warning: variable ‘file1’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:515:26: warning: variable ‘file2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:516:26: warning: variable ‘file3’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:517:26: warning: variable ‘subdir1’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:518:26: warning: variable ‘subdir2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:717:26: warning: variable ‘tmpdir’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:718:26: warning: variable ‘workdir’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:719:26: warning: variable ‘workdir2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:720:26: warning: variable ‘file1’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/httpserver.c:721:26: warning: variable ‘file2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/ipcsupp.c:44:45: warning: variable ‘c1’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/ipcsupp.c:45:45: warning: variable ‘c2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/tcpsupp.c:52:45: warning: variable ‘c1’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]
tests/tcpsupp.c:53:45: warning: variable ‘c2’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Wclobbered]

GCC 14.2.1 20241221, x86_64-pc-linux-gnu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions